Page 1 of 3 123 LastLast
Results 1 to 10 of 23

Thread: change Storage directory for streams

  1. #1
    Join Date
    Dec 2008
    Posts
    15

    Default change Storage directory for streams

    Hi,
    I am trying to streams my flvs' from my "c" drive instead of default storage directory .
    I have override Play() method in my custom module like this :
    Code:
     public void play(IClient client, RequestFunction function, AMFDataList params)
    	{
    		
    		if (params.get(PARAM1).getType() == AMFData.DATA_TYPE_STRING)
    		{
    			String streamName = params.getString(PARAM1);
    
    			params.set(PARAM1, new AMFDataItem("c://mnt/sdt-platfs1/images/forums2/FR/0/0/videos/videos_8dcd5c3c-9dea-43d3-b8e8-2145ee0c37e0.flv"));
    		}
    		com.wowza.wms.module.ModuleCore.play(client, function, params);
    	}
    after making connection from client I get this errorr
    Code:
      WARN server comment c://mnt/sdt-platfs1/images/forums2/FR/0/0/videos/videos_8dcd5c3c-9dea-43d3-b8e8-2145ee0c37e0.flv open: java.io.FileNotFoundException: C:\Program Files\Wowza Media Systems\Wowza Media Server 2\applications\videoeditor\streams\_definst_\c___mnt_sdt-platfs1_images_forums2_FR_0_0_videos_videos_8dcd5c3c-9dea-43d3-b8e8-2145ee0c37e0.flv (The system cannot find the file specified)
    Please help how can I Achieve this?
    Also do I need to change Application.xml for this module

    Thanks in advance
    Mayur

  2. #2
    Join Date
    Dec 2007
    Posts
    25,886

    Default

    Change Application.xml /StorageDir to the location you want to use.

    Code:
    <StorageDir>c://mnt/sdt-platfs1/images/forums2/FR/0/0/videos</StorageDir>
    Richard

  3. #3
    Join Date
    Dec 2008
    Posts
    15

    Default

    This is what I did to test if it works external directory for stream storage.
    But , I want to change this directory dynamically depending on the input parameter sent from flex client.

    Please let me know if there is any way to do this ?

  4. #4
    Join Date
    Dec 2007
    Posts
    25,886

    Default

    You can change StorageDir dynamically through IApplicationInstance method, but I think that will change it for all clients. That's not what you are trying to do, is it?

    Richard

  5. #5
    Join Date
    Dec 2008
    Posts
    15

    Default

    right, thats not what we want to do, we have to have different storage directory for each client. it will be dependent on logged in user to application

  6. #6
    Join Date
    Dec 2007
    Posts
    25,886

    Default

    You can use subfolders, for example:

    c:\content\userid

    Richard

  7. #7
    Join Date
    Dec 2008
    Posts
    15

    Default

    did not understand this ?
    where should i specify this subfolder

  8. #8
    Join Date
    Dec 2007
    Posts
    25,886

    Default

    Sorry, it would be client-side in the NetStream.play command.

    Code:
    netstream.play("userid/example.flv");
    Richard

  9. #9
    Join Date
    Dec 2007
    Posts
    25,886

    Default

    Or more like:
    netstream.play("1234/example.flv");
    Where 1234 is a userid.

  10. #10
    Join Date
    Dec 2008
    Posts
    15

    Default

    Yes it will be still inside /content of the wowza installation directory, and want it to be outside , may be on some server, or on s3
    we are just trying from "c:\" drive to test

Page 1 of 3 123 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •