Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added stopOthers similar to pauseOthers.

  • Loading branch information...
commit 0599bcba46e161a6c1c69ade274755dc6bed46f3 1 parent 858966b
Guru Prasanna C S authored
Showing with 10 additions and 0 deletions.
  1. +10 −0 jquery.jplayer/jquery.jplayer.js
View
10 jquery.jplayer/jquery.jplayer.js
@@ -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) {
Please sign in to comment.
Something went wrong with that request. Please try again.