Page 1 of 4 123 ... LastLast
Results 1 to 10 of 39

Thread: wowza stream to JW player HTML5

  1. #1
    Join Date
    Jun 2012
    Posts
    22

    Default wowza stream to JW player HTML5

    hello,

    I try to get the wowza stream to JW Player 5.9 with HTML5 mode.
    Unfortunately, it does not work. It falls back to download.


    Is 'provider': 'video' correct? Is the playlist URL correct?

    /live/lq/playlist.m3u8 is Video H264 MPEG-4 AVC and Audio: MPEG AAC (mp4a) (says VLC)
    (so, the URL basically works)



    <script type='text/javascript' src='/jwplayer/jwplayer.js'></script>
     
    <div id='mediaplayer'></div>
     
    <script type="text/javascript">
      jwplayer('mediaplayer').setup({
        'id': 'playerID',
        'width': '480',
        'height': '270',
        'provider': 'rtmp',
        'streamer': 'rtmp://xx:1935/live/lq',
        'file': 'sintel.mp4',
        'image': 'http://example.com/thumbs/sintel.jpg',
        'modes': [
            {type: 'flash', src: '/jwplayer/player.swf'},
            {
              type: 'html5',
              config: {
               'file': 'http://xx:1935/live/lq/playlist.m3u8',
               'provider': 'video'
              }
            },
            {
              type: 'download',
              config: {
               'file': '/videos/sintel.mp4',
               'provider': 'video'
              }
            }
        ]
      });
    </script>
    the code is from http://www.longtailvideo.com/support...html5-fallback

    thanks for help!

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

    Default

    You have the player setup for progressive download. Take a look at this guide to setup for rtmp connection with "streamer" param.

    http://www.wowza.com/forums/content....h-Wowza-Server

    Richard

  3. #3
    Join Date
    Jun 2012
    Posts
    22

    Default

    hmm

    can you please help me with the above example, how to adapt this, it looks a little bit different to yours.

    and, I am confused about the playlist. You use the &provider=rtmp and not the playlist, why?


    'modes': [
            {type: 'flash', src: '/jwplayer/player.swf'},
            {
              type: 'html5',
              config: {
               'file': 'lq',
            'streamer': 'rtmp://xx:1935/live',
               'provider': 'rtmp'
              }
            },
            {
              type: 'download',
              config: {
               'file': '/videos/sintel.mp4',
               'provider': 'video'
              }
            }
        ]
    Last edited by riverjack; 06-04-2012 at 04:29 PM.

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

    Default

    Actually, I'm wrong, what you had before was okay. It was missing script tag

    <script type='text/javascript' src='/jwplayer/jwplayer.js'></script>
    Make sure the src is pointing to correct location of jwplayer.js file.

    Here is the longtailvideo guide for this:
    http://www.longtailvideo.com/support...html5-fallback

    Richard

  5. #5
    Join Date
    Jun 2012
    Posts
    22

    Default

    the src is correct and the player appears. But instead of streaming just the download is offered

    please give me an working example.

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

    Default

    This means it failed over to that. Test the RTMP connnection and stream name with the Wowza SimpleVideoStreaming player

    [install-dir]/examples/SimpleVideoStreaming/client/simplevideostreaming.html

    Server: rtmp://xx:1935/live/lq
    Stream: mp4:sintel.mp4

    You can run Wowza in stand-alone (/bin/startup.bat) mode instead of as a service so you can see log output in the console, which is helpful to debug.

    Richard

  7. #7
    Join Date
    Jun 2012
    Posts
    22

    Default

    Failed to play sintel.mp4; stream not found.

    server:
    INFO session connect-pending x.x.x.151 -
    INFO session connect x.x.x.151 -
    INFO stream create - -
    INFO stream destroy sintel.mp4 -
    INFO session disconnect 1342628936 -

  8. #8
    Join Date
    Oct 2011
    Posts
    26

    Default

    hi,

    I think jwplayer is broken about html5 (m3u8) thing
    I do the same as you in removing "download type" and impossible to read m3u8, I just get spinning circle animation... no more

    Nicolas

  9. #9
    Join Date
    Jun 2012
    Posts
    22

    Default

    would be nice to have an working solution for a flash player with HTML5 fallback, because of the trial license will end very soon

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

    Default

    I see the problem, sorry I missed it yesterday: The application is named "live" and the message indicates its StreamType is "live", but you are playing a file. Change the StreamType to "default"

    Richard

Page 1 of 4 123 ... LastLast

Similar Threads

  1. Live Wowza through JW Player with HTML5 fallback?
    By Wabkeb in forum Media Players and Devices Discussion
    Replies: 2
    Last Post: 08-11-2015, 05:02 AM
  2. Replies: 1
    Last Post: 10-02-2014, 06:47 AM
  3. Does Strobe Media Player Support HTML5
    By dairees567 in forum General Forum
    Replies: 4
    Last Post: 09-10-2014, 08:27 PM

Posting Permissions

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