Having spend the last couple of days reading the manuals, watching videos and reading through the forum, I can honestly I have no idea what I’m doing.
My basic requirement is to display a video on a web page so that it works in all major browsers.
Easy in Chrome, not so easy in anything else it seems.
For example Firefox will say ‘Error loading player, No playable sources available’, or if I add more sources it simple prompts me to select a video player on my local machine and proceeds to download the file.
Here is where I’m at right now, of-course it does not work.
jwplayer('playerOMLNJWgiRjbu').setup({
'sources': [
{ 'file': 'rtmp://video.newnrg.com:1935/vod/mp4:sample.mp4'},
{ 'file': 'http://video.newnrg.com:1935/vod/mp4:sample.mp4/manifest.mpd' },
{ 'file': 'http://video.newnrg.com:1935/vod/mp4:sample.mp4/playlist.m3u8'},
{ 'file': 'http://video.newnrg.com:1935/vod/mp4:sample.mp4/manifest.f4m'},
{ 'file': 'rtsp://video.newnrg.com:1935/vod/sample.mp4' }
],
'rtmp': {
'bufferlength': 5
},
'primary': 'flash',
'modes': [
{ 'type': 'flash', 'src': '/app/src/jwplayer/jwplayer.flash.swf' }
]
});
rtmp://video.newnrg.com:1935/vod/mp4:sample.mp4 (200)
http://video.newnrg.com:1935/vod/mp4:sample.mp4/manifest.mpd (200)
http://video.newnrg.com:1935/vod/mp4:sample.mp4/playlist.m3u8 (200)
http://video.newnrg.com:1935/vod/mp4:sample.mp4/manifest.f4m (200)
rtsp://video.newnrg.com:1935/vod/sample.mp4 (200)
In firefox when rtsp://video.newnrg.com:1935/vod/sample.mp4 is used it asks for a locally installed player to play the video file, yet pasting this URL into the browser address bar works.
I’ve looked at the wowza homepage to attempt to dissect how this library is being used.
Wowza config:
(on) MPEG-DASH
(on) Apple HLS
(on) Adobe RTMP
(on) Adobe HDS
(on) Microsoft Smooth Streaming
(on) RTSP/RTP
From my perspective I’ve certainly struggled to get to this point, and have the following questions.
-
Which is the preferred client side player, with a decent JavaScript API,
-
I like the JWPlayer api, so can it be used? and what is best practice in easy to follow steps 1, 2, 3.