Mutually Exclusive Playback

A demo setup with multiple players. When one of them starts, the others are automatically paused.

License: All
Player Version:
Author: JW Player | GitHub
This demo includes:
  • on('play')
  • pause()
<script type="text/javascript">

var player1 = jwplayer("player1");
var player2 = jwplayer("player2");
var player3 = jwplayer("player3");

// When a player size is set to a fixed height of 40px, the player will enter audio mode.

  file: "//",

  file: "//",

  file: "//",

player1.on('play', function() {

player2.on('play', function() {

player3.on('play', function() {

function pausePlayers(playing) {
  for (var i = 1; i < 4; i++) {
   if (i != playing) {
     jwplayer("player" + i).pause(true);

Please Note: This player implementation is a Proof of Concept only provided to show the possibilities of the JW Player and Platform and should not be taken as an offer to create, edit or maintain custom integration or development.