Also take a look at JW Player's Quality Monitor plugin
Note: This requires Wowza version 3.0.3.08
Note: There is a similar technique, documented separately here, for generating smil on Liverepeater (edge) servers using Wowza Transcoder Stream Name Group (ngrp) or MediaList (amlst) that is on the origin.
Follow these steps:
- Add this HTTPProvider to /conf/VHost.xml /HostPort /Port "1935" /HTTProviders container (make it 2nd from last, above the server version HTTPProvider):
Code:<HTTPProvider> <BaseClass>com.wowza.wms.http.HTTPProviderMediaList</BaseClass> <RequestFilters>*jwplayer.rss</RequestFilters> <AuthenticationMethod>none</AuthenticationMethod> </HTTPProvider>
- Restart Wowza for changes to VHost.xml to take effect.
- With a smil file, Wowza Transcoder Stream Name Group (ngrp) or MediaList (amlst), you can now generate the client-side RSS for JW player using a URL in this form:
For example, with a file named sample.smil in the content folder alongside sample.mp4 and sample_250.mp4:Code:http://[wowza-ip-address]:1935/[application]/[prefix]:[stream-name]/jwplayer.rss
You can use the following URL with JW Player 5 in place of a local rssCode:<smil> <head> </head> <body> <switch> <video src="mp4:sample_250.mp4" system-bitrate="250000"/> <video src="mp4:sample.mp4" system-bitrate="450000"/> </switch> </body> </smil>
For JW Player 6, which uses client-side .smil, use this url:Code:http://[wowza-address]:1935/vod/smil:sample.smil/jwplayer.rss
Code:http://[wowza-address]:1935/vod/smil:sample.smil/jwplayer.smil
- Following the JW Player instructions here but skip making the local xml file. You will use the above url instead:
Code:<script type='text/javascript' src='/jwplayer/jwplayer.js'></script> <div id='mediaplayer'></div> <script type="text/javascript"> jwplayer('mediaplayer').setup({ 'flashplayer': 'player.swf', 'id': 'playerID', 'width': '720', 'height': '306', 'playlistfile': 'http://[wowza-address]:1935/vod/smil:sample.smil/jwplayer.rss', 'plugins': { 'qualitymonitor-2': {} } }); </script>
This URL:
Code:
http://[wowza-address]:1935/vod/smil:sample.smil/jwplayer.rss
Code:
<rss xmlns:media="http://search.yahoo.com/mrss/" xmlns:jwplayer="http://developer.longtailvideo.com/" version="2.0"> <channel> <item> <title>sample.smil</title> <description>sample.smil</description> <jwplayer:streamer>rtmp://[wowza-address]:1935/vod/_definst_</jwplayer:streamer> <media:group> <media:content url="mp4:sample_250.mp4" bitrate="250"/> <media:content url="mp4:sample.mp4" bitrate="450"/> </media:group> </item> </channel> </rss>
Code:
http://[wowza-address]:1935/vod/smil:sample.smil/jwplayer.smil
Code:
<smil> <head> <meta base="rtmp://localhost:1935/vod/_definst_"/> </head> <body> <switch> <video src="mp4:sample_250.mp4" system-bitrate="250"/> <video src="mp4:sample.mp4" system-bitrate="450"/> </switch> </body> </smil>
Two examples:
Code:
http://[wowza-address]:1935/vod/ngrp:myStream_all/jwplayer.rss http://[wowza-address]:1935/vod/amlst:sample/jwplayer.rss
Generating MediaList (amlst) is described in this article


Article List
Categories
Wowza Media