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

JW Player playing in background


Hi,

I am using JW Player with Bootstrap Modal Popup. When pause the video before closing the Modal is working really fine and no issue with that. But when I close the Modal Popup while video is playing, I am pausing the video (jwplayer("myPlayer").pause()). But in Safari(iMac), when close the Modal is closing but audio is playing in background.

How can I stop this propagation ? Here is the code

$('#openModal').on('hidden.bs.modal', function () {
jwplayer('myPlayer').pause();
});

This code is not working in Safari only.

4 Community Answers

Heidi

JW Player Support Agent  
0 rated :

Hello,

Have you tried using jwplayer().stop() instead? Using jwplayer().pause() toggles the state and may not be ceasing play altogether. The stop() method changes the player to an idle state.

Heidi

a...

User  
0 rated :

@Heidi,

I cannot say 100% this is working but it is seems like working 50%. Because sometimes it is working and sometimes it is not.

a...

User  
0 rated :

@Heidi,

It is not working even 50%. stop() also not working with Bootstap Modal.

Heidi

JW Player Support Agent  
0 rated :

Would you have a link you could send? I will need to take a closer look at what is happening with the code to advise you further.

Thanks, Heidi

This question has received the maximum number of answers.