android - Streaming live stream with JWplayer in Phonegap -
i have been @ days , have had no luck trying trouble shoot. have multiple live streams on site , wanted put in app everytime upload phonegap , download on phone video wont play.
neither flash or html5 version of app plays. copied code used on site place in index.html document of app reason fails. message reads (going off memory) either there problem network or server or file not supported). although know isnt fact because works when view site phone, not app.
markup looks this:
<head> <script type="text/javascript" src="http://www.my-domain.com/jwplayer/jwplayer.js"></script> </head> <body> div id='mediaplayer2'> <script type="text/javascript"> jwplayer('mediaplayer2').setup({ 'id': 'playerid', 'width': '388', 'height': '218', 'provider': 'rtmp', 'streamer': 'rtmp://0.0.0.0/some-directory', 'autostart': 'true', 'stretching': 'exactfit', levels: [{ bitrate: "800", file: "my-file-name", width: "1280" }], 'modes': [ {type: 'flash', src: 'http://www.my-domain.com/jwplayer/player.swf'}, { type: 'html5', config: { levels: [ {'file': 'http://0.0.0.0/some-directory/playlist.m3u8'} ], 'provider': 'video' } } ] }); </script> <video id="mediaplayer2" controls="1" autoplay="1" height="218" preload="none" src="http://0.0.0.0/some-directory/playlist.m3u8" width="388"> </video> </div> </body> what need different work in app in browser? im developing in dreamweaver , when hit "live" streams perfectly, not in app.
thanks in advance
use vitamio player can play kind of streaming open source,. u need include library ur project , make sure use vitamio videoview or mediaplayer,. k no worry take @ sample include vitamio ur project
hope helps you,.
regards rajeev
Comments
Post a Comment