Results 1 to 6 of 6

Thread: Can Anyone Direct Me to an Article or Video on How To Do On Demand Streaming?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Nov 2012
    Posts
    3

    Default Can Anyone Direct Me to an Article or Video on How To Do On Demand Streaming?

    I have Wowza set up on a server and it works fine on the server, but I can't figure out how to do a link to the videos or embed the videos on a web server, located on another server. I was hoping for some help finding a tutorial or something. We want it to be available across all devices, but right now I just want to get it working on any device. I can create a test page on our site for practice but not sure what to put on it.

    Any help is appreciated.

    thanks
    terri

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

    Default

    Hi
    What player are you planning/trying to use?

    You can find information for JWPlayer and the embed code here,
    http://www.wowza.com/forums/content....a-Media-Server

    Alternatively you can find information for FlowPlayer and the embed code here,
    http://www.wowza.com/forums/content....a-Media-Server

    Jason

  3. #3
    Join Date
    Jul 2009
    Posts
    135

    Default

    Actually that JW Player tutorial is slightly out-of-date (you can't even get JW version 5 easily anymore at their web site). Might be better to just go to the JW Player site and follow their guide for RTMP/HTML5 using version 6:
    http://www.longtailvideo.com/support...tmp-streaming/

    I like the second example under "Embedding a Stream" on that page. To modify it a bit for Wowza:

    <script type="text/javascript" src="jwplayer.js"></script>
    <div id="myElement"></div>
    <script type="text/javascript">
    jwplayer("myElement").setup({
        playlist: [{
            sources: [{ 
                file: "rtmp://[wowza-address]/vod/mp4:sample.mp4"
            },{
                file: "http://[wowza-address]:1935/vod/mp4:sample.mp4/playlist.m3u8"
            }]
        }],
        height: 240,
        width: 424,
        autostart: true
    });
    </script>
    So the steps would be as follows:

    1. Verify Wowza's default VOD application, to play the default "sample.mp4" video file -- sounds like you've done this already:
    http://www.wowza.com/forums/content....on-demand-file

    2. Download JW Player:
    http://www.longtailvideo.com/jw-player/download

    3. Upload the three files contained in that JW Player download (jwplayer.js, jwplayer.html5.js, jwplayer.flash.swf) to the same folder on your web server.

    4. Make a new web page in that same folder with the code I posted above, substituting your Wowza domain name or IP address for "[wowza-address]".

    You should now be able to load that page and see the sample video on any Flash-capable browser or iOS device (iPad, iPhone, etc).

  4. #4
    Join Date
    Dec 2007
    Posts
    21,962

    Default

    I found you need the jwplayer.key for the HLS to work. I guess that is optional with the premium version

    http://www.wowza.com/forums/showthread.php?17319#4

    You have to go thru their setup wizard to get that key.

    Richard

  5. #5
    Join Date
    Nov 2012
    Posts
    3

    Default

    Thank you so much for your response! This worked beautifully, I followed your instructions step by step. May I ask one more question? Since the JW player is now on my webserver, does that mean I need to worry about the bandwidth there? Or is it actually streaming from the WOWZA server (which is separate in our case)? Thank you again!

    terri

  6. #6
    Join Date
    Dec 2007
    Posts
    21,962

    Default

    Terri,

    No, your player is served from your web server but it runs in the user's browser. It connects to Wowza at run time, from the browser. Bandwidth is used between Wowza and the player.

    Richard

Posting Permissions

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