I use phonegap to stream http live. I use jwplayer for it.
here is the code for it.
<div id='mediaplayer1'> <script type="text/javascript"> jwplayer('mediaplayer1').setup({ 'id': 'playerID', 'width': '388', 'height': '218', 'provider': 'rtmp', 'streamer': 'rtmp://myserver/chk', 'autostart': 'true', 'stretching': 'exactfit', levels: [{ bitrate: "800", file: "file-super", width: "1280" }], 'modes': [ {type: 'flash', src: 'http://www.myserver.com/jwplayer/player.swf'}, { type: 'html5', config: { levels: [ {'file': 'http://myserver/playlist.m3u8'} ], 'provider': 'video' } } ] });</script> </div>
and in the head
<script src="jwplayer.js" type="text/javascript"></script>
I want to play .m3u8 url. play the video several times in about 1 or 2 seconds. and automatically stops. and several times show a warning that the resource available for the game was not found. how to solve it. is there a good example / tutorial for it.
Thanks in advance.
user2118554
source share