Results 1 to 2 of 2

Thread: How to pass variables/data to a module from HTTProvider?

  1. #1
    Join Date
    Sep 2012
    Posts
    1

    Default How to pass variables/data to a module from HTTProvider?

    Hi,
    This forum has helped answer a lot of questions!
    I have successfully setup a HTTProvider to start and stop the mediaCaster. I also have successfully created the "ModuleMediaWriterFileMover.java" and got the file moving to work too.

    What I can not figure out is how to pass a string and it's data from HTTProvider to ModuleMediaWriterFileMover.java.

    Example:

    In the HTTProvider, i'll have a
    if (params.containsKey("customerID")) {customerID = params.get("customerID").get(0);}

    Now I need to access that Param in ModuleMediaWriterFileMover.java which contains

    public void onWriteComplete(IMediaStream stream, File file){

    //I need to access the param/variable customerID here so I can rename a file using the passed ID...

    }


    How do I do that?

    Thanks

  2. #2
    Join Date
    Sep 2011
    Posts
    1,933

    Default

    Hi
    You can't do this with the "onWriteComplete" function because this is function tells you that the file has been closed because its been completed.
    I think you'll need to write your own "move" code rather than the one that ships with Wowza.

    Jason

Similar Threads

  1. Replies: 3
    Last Post: 09-12-2013, 07:07 AM
  2. How to pass additional variables when using playlst.m3u8?
    By vBadvanced in forum Media Players and Devices Discussion
    Replies: 1
    Last Post: 01-24-2013, 02:47 PM
  3. Pass mp3/video name and data from playlist smil into the stream
    By Benny Veo in forum Live Streaming and Encoder Discussion
    Replies: 6
    Last Post: 03-07-2012, 10:02 AM

Posting Permissions

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