Skip to content

Commit

Permalink
Added stopOthers similar to pauseOthers.
Browse files Browse the repository at this point in the history
  • Loading branch information
guru4vedi committed Feb 5, 2013
1 parent 858966b commit 0599bcb
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions jquery.jplayer/jquery.jplayer.js
Expand Up @@ -1732,6 +1732,16 @@
}
});
},
stopOthers: function() {
var self = this;
$.each(this.instances, function(i, element) {
if(self.element !== element) { // Do not this instance.
if(element.data("jPlayer").status.srcSet) { // Check that media is set otherwise would cause error event.
element.jPlayer("stop");
}
}
});
},
stop: function() {
if(this.status.srcSet) {
if(this.html.active) {
Expand Down

0 comments on commit 0599bcb

Please sign in to comment.