Jwplayer 7.0.3 with flash 18 not playing videos, while HTML is working fine -
although works ni html5 mode mp4 files, player not play neither flv files in flash mode, nor mp4 files in flash mode. in chrome (44.0.2403.157) nd firefox (40.0.3), it's loading indefinitely.
what stranger player jwplayer dashboard (https://dashboard.jwplayer.com/#/players/basic_setup) manages play flv files when loading them console using following call:
jwplayer(document.queryselector('.jwplayer')).load([{ file:'http://www.sample-videos.com/video/flv/720/big_buck_bunny_720p_1mb.flv' }]);
here's jsfiddle showcasing issue:
https://jsfiddle.net/kldmj42d/ (make sure specify license key)
just toggle comments on mp4 , flv files make sure works mp4 file.
html:
<div class="main"> <div id="player"> </div> </div>
js:
jwplayer.key = ""; jwplayer.defaults = { aspectratio: "16:9", autostart: false, controls: true, displaydescription: false, displaytitle: true, flashplayer: "//ssl.p.jwpcdn.com/player/v/7.0.3/jwplayer.flash.swf", height: 260, mute: false, ph: 1, //plugins: {"http://assets-jpcust.jwpsrv.com/player/6/6124956/ping.js": {"pixel": "http://content.jwplatform.com/ping.gif"}}, primary: "html5", repeat: false, stagevideo: false, stretching: "uniform", width: "100%" }; jwplayer(document.getelementbyid('player')).setup({ file: 'http://www.sample-videos.com/video/flv/720/big_buck_bunny_720p_1mb.flv' //file: 'http://www.sample-videos.com/video/mp4/720/big_buck_bunny_720p_1mb.mp4' });
i posted issue on jwplayer's website: http://support.jwplayer.com/customer/portal/questions/14332602-jwplayer-7-3-with-flash-18-not-playing-videos
the issue that, apparently, jwplayer flash player needs access window.jwplayer
work.
but, obviously, when using amd, window.jwplayer
never set.
until there's fix, workaround set window.jwplayer
in app's code.
as jsfiddle, said in comment, doesn't work because of sandboxed iframe.
Comments
Post a Comment