I am using jwplayer for playing video:
jwplayer("container").setup({
flashplayer: "<?php echo $this->getSkinUrl('video/mediaplayer/jwplayer.flash.swf') ?>",
autostart: true,
file: "<?php echo $this->getSkinUrl('video/').$video ?>",
type: 'mp4',
controls: false,
logo: {
hide: true,
position: 'top-left'
},
width: '432',
height: '648',
stretching: 'fill',
screencolor: 'FFFFFF',
fallback: false,
events: {
onIdle: function() {
document.getElementById('vid').style.display="none";
},
onComplete: function() {
document.getElementById('vid').style.display="none";
}
}
});
A video is playing, but in some browsers it went to Idle state and as a result user is not able to see video. How can I prevent video to go Idle state?