Results 1 to 8 of 8

Thread: Can I embed meta-data on a stream? or Events on server?

  1. #1
    Join Date
    Sep 2011
    Posts
    7

    Default Can I embed meta-data on a stream? or Events on server?

    Hello,

    I have a dynamically generated list of videos which I stream by using the following snipped of code:

    Playlist stream_list = new Playlist("stream_list");

    stream_list.setRepeat(true);

    for(String i : playlist_array) {
    stream_list.addItem(i, 0, -1);
    }

    stream_list.open(live_stream);

    My question is Can I embed data on the stream such that I am able to tell from Flash when I am consuming it? For example answer the simple question of "What video did we just load? or what video is playing right now in the playlist being streamed?"

    This is my Flash code for consuming the stream:


    myConnection.connect("rtmp://localhost/xxxx/" + inst, "player");


    Now that I think about this it might be easier to make a call back from the Wowza server to my web application every time the playlist changes to the next video. Any ideas how to catch this event on the server and take action on this event?

    Thanks in advance.

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

    Default

    If you do stream.setSendOnMetadata(true), Wowza will send metadata from the file when it starts or switches to a new file. (Be aware that this will include duration, and JW Player and perhaps other players think it is vod and display scrub bar, which is a problem for a live stream.)

    You can also use IStreamActionNotify interface onPlaylistItemStart event. Take a look at the scheduler example

    http://www.wowza.com/forums/content....t-in-smil-file

    Richard

  3. #3
    Join Date
    Sep 2011
    Posts
    7

    Default

    Thanks Richard! I've got the second option working.

    This might be out of the wowza scope but how would I embed metadata into an FLV? Do i do this at the time of creation? or can I do it post creation?
    The VOD hiccup that you mentioned won't be a problem since we will only be using the Flash player.

    F>

  4. #4
    Join Date
    Sep 2011
    Posts
    7

    Default

    One more thing, is there an example done in Flex 4 as a client consuming a playlist stream like the one I have talked about?

  5. #5
    Join Date
    Dec 2007
    Posts
    25,640

    Default

    There is nothing special on the client-side about subscribing to a Stream class stream. The LiveVideoStreaming /clientFlex example will work using Flex SDK 3.5 or 4.x

    Richard

  6. #6
    Join Date
    Sep 2011
    Posts
    1

    Default

    Hi Richard.
    Please, help me. I'm confused.
    For inject metadata in my cupertino stream, I need to have a file fla?
    I have a live stream for iPad/iPhone, and I need inject a custom metadata some times in my stream. What is the better way?
    I read in the forum some posts, but not helped me.

    Thanks in advance.

  7. #7
    Join Date
    Dec 2007
    Posts
    25,640

    Default

    It can start with a custom Flash application that you use as a controller to insert cuepoints into a live stream. Then you would need the code in this post for the iOS stream. For this approach you need to know Flash CS or Flex, and you need to be able to use Wowza IDE, etc. It's kind of hard to lay that all out in a post, but all the parts are here. If you want to hire someone, we have a list of independent consultants which you can get by sending email to support@wowza.com to request.

    Richard

  8. #8
    Join Date
    Sep 2011
    Posts
    5

    Default

    I am trying to something very simular but am having problems.

    We want to insert live script data once per second into a FLV live stream as it is passing through Wowza. The live script stream is coming from another server that supplies the data. Are there any examples on how a socket connection may be established to Wowza to insert the data? We then want the resulting stream with script data to be archived for VOD or DVR.

Tags for this Thread

Posting Permissions

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