
jwAdvancedSetup
THe following question was posted last year:
How to stop any other player on page from playing when playing a video
klainez — Mar 31, 2015
The answer so far is:
The JW6 event syntax would be as follows:
<script>
jwplayer("player1").setup({
file: 'xyz.mp4',
autostart: false,
width: '100%',
aspectratio: '16:9',
stretching: 'exactfit'
});
jwplayer("player1").onBeforePlay(function(){
pauseAllOthers("player1");
});
// Pause All Others
function pauseAllOthers(currentId){
...
}
</script>
I'd actually pause all the other players *before* the current one begins playing.
James
I still don't know how to get this accomplished. I have searched the web to no avail.
Could you please provide a complete answer with complete code. There are parts missing and I am not a programmer.
Thank you.
Henry