
make jwplayer play when pause caus problem
i make a streaming by jwplayer and some time connexion lost and come back so in this time my jwplayer paus even the connexion come he still in event pause, so i need i function with loop verifier if jwlayer pause turn it play, i try with some function but not work,my code :
<script type='text/javascript'>
jwplayer('mediaspace').setup({
controlbar: "false",
flashplayer: "http://wpc.511C.edgecastcdn.net/00511C/common-player-files/jw_player-5.6-licensed/player.swf",
file: "OutStream1",
provider: "rtmp",
streamer: "rtmp://176.31.229.18/live",
'rtmp.subscribe': 'true',
'logo.hide': 'true',
'logo.position': 'bottom-right',
image: "rtmp://176.31.229.18/live//OutStream1",
autostart: "true",
height: "100%",
width: "100%",
top:"0",
stretching: 'exactfit',
aspectratio : '16/9',
frameborder:"0",
right: "0",
bottom: "20",
});
jwplayer().onReady(function() {
jwplayer().getContainer().addEventListener(‘click’, function() {
if(jwplayer().getState() === ‘PAUSE’) jwplayer().play(true);
else jwplayer().play(true);
});
});
</script>