Results 1 to 8 of 8

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

Hybrid View

  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,673

    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,673

    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.

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
  •