jwplayer - JW Player 7 loads HLS file only once in a tabbed container, with FLV all goes well -


i have multiple jwplayer instances on 1 page, switched tabbed div. 1 of tabs has hls file assigned jwplayer, other ones have flv files assigned. when viewing hls tab first time , playing it, works charm, when switch tabs (display:none <> display:block) returns no playable source error.

this exact same behaviour not result in error flv files, switching , forth tabs , viewing flv not propose problem.

  <script type="text/javascript">     $(document).ready(function() {       var player_container0 = jwplayer('container0');       player_container0.setup({         file: 'http://samplescdn.origin.mediaservices.windows.net/e0e820ec-f6a2-4ea2-afe3-1eed4e06ab2c/azuremediaservices_overview.ism/manifest(format=m3u8-aapl-v3)',         type: 'hls',         width: '100%',         aspectratio: '16:9'       });        var player_container1 = jwplayer('container1');       player_container1.setup({         file: 'http://www.mediacollege.com/video-gallery/testclips/20051210-w50s.flv',         type: 'flv',         width: '100%',         aspectratio: '16:9'       });     });   </script> 

i have plunker setup review behaviour.

thanks in advance !

file issue in http://github.com/jwplayer/jwplayer

when set display:none on player , it's using flash render video (it both hls , flv in case), flash app unloaded memory , reloaded again once it's visible again in dom. work around setting visible:hidden , using api pause , resume playback. think you'll find lot faster loading , unloading swf memory each time. let me know.

if file issue in gihtub can see when flv player in flash able recover while hls player not. code different , not designed handle kind of resets caused removing plugin dom or setting display none.


Comments

Popular posts from this blog

Hatching array of circles in AutoCAD using c# -

ios - UITEXTFIELD InputView Uipicker not working in swift -

Python Pig Latin Translator -