video - jwplayer not working in Internet Explorer -
video - jwplayer not working in Internet Explorer -
having issues jwplayer in net explorer
jw player version: 6.1.2972
<div id="mediaplayer_1294">jw player goes here</div> <script type="text/javascript"> jwplayer("mediaplayer_1294").setup({ flashplayer: "jwplayer/jwplayer.flash.swf", file: "media.php?file=encoded_2012-10-19_17.13.24_1360841686.mp4&folder=shareddocs&user=9759", image: "media.php?file=encoded_2012-10-19_17.13.24_1360841686.jpg&folder=thumb&user=9759", controlbar: "bottom", width: "380", height: "200", primary: "html5", type: "mp4", controls: true, allowscriptaccess: 'always', bufferlength: 5 }); </script>
ie7: loads , plays fine on console
log: not add together internal listener
ie8:
error loading player: not load player configuration
ie9:
error loading media: file not played
and on console:
log: error playing media: [object mediaerror] log: captions([object object]) log: captions([object object])
works fine in other browsers
update:
as had many jwplayers in 1 page (10 max) implemented click load players. reason has fixed ie 8 issue
<div class="player-<?php echo $row['p_id']; ?>"> <div id="mediaplayer_<?php echo $row['p_id']; ?>"></div> <a href="#player-<?php echo $row['p_id']; ?>" id="btn_<?php echo $row['p_id']; ?>"><img src="<?php echo $thumb_path; ?>"/></a> </div> <script type="text/javascript"> $(document).ready(function() { $("#btn_<?php echo $row['p_id']; ?>").click(function() { $(this).hide(); jwplayer('mediaplayer_<?php echo $row['p_id']; ?>').setup({ flashplayer: "jwplayer/jwplayer.flash.swf", file: "<?php echo $flv_path; ?>", image: "<?php echo $thumb_path; ?>", controlbar: "bottom", width: "380", height: "200", autostart: "true", primary: "html5", type: "mp4", controls: true, allowscriptaccess: 'always' }); jwplayer('mediaplayer_<?php echo $row['p_id']; ?>').load(); settimeout(function(){$(".player-<?php echo $row['p_id']; ?>").focus();return false;},100); }); }); </script>
check response header when calls .mp4 file.
make sure sending content-length:
in response. ie9 failing load videos until content-length
response header added config.
also transfer-encoding:chunked
can mess things too, mutual if gzipping mp4 file.
video html5-video jwplayer
Comments
Post a Comment