Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

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'>

controlbar: "false",

flashplayer: "",
file: "OutStream1",
provider: "rtmp",
streamer: "rtmp://",
'rtmp.subscribe': 'true',
'logo.hide': 'true',
'logo.position': 'bottom-right',
image: "rtmp://",
autostart: "true",
height: "100%",
width: "100%",
stretching: 'exactfit',
aspectratio : '16/9',
right: "0",
bottom: "20",

jwplayer().onReady(function() {
jwplayer().getContainer().addEventListener(‘click’, function() {
if(jwplayer().getState() === ‘PAUSE’) jwplayer().play(true);
else jwplayer().play(true);


1 Community Answers


JW Player Support Agent  
0 rated :

Hi, there.

It appears you are using JW Player 5 which we no longer support since it’s been more than 18 months since JW Player 6 was released in November 2012. I would suggest you take a look at JW Player 7 since we have made a lot of major improvements since JW 5.

Please let me know if you need any more help or have any other questions.

Thank you!

This question has received the maximum number of answers.