Skip to content

Commit

Permalink
#FEC-2388 #comment fixed #time 1d
Browse files Browse the repository at this point in the history
  • Loading branch information
InbarItay committed Dec 8, 2014
1 parent 31e785d commit a6cc09c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
11 changes: 5 additions & 6 deletions modules/EmbedPlayer/resources/mw.EmbedPlayerNativeComponent.js
Expand Up @@ -242,13 +242,12 @@
/** /**
* Stop the player ( end all listeners ) * Stop the player ( end all listeners )
*/ */
stop: function () { stop: function(){
mw.log("EmbedPlayerNativeComponent:: stop::"); var _this = this;
this.parent_stop(); if( this.playerElement && this.playerElement.currentTime){
if (this.getPlayerElement() && this.getPlayerElement().attr('currentTime')) { this.playerElement.pause();
this.getPlayerElement().attr('currentTime', '0');
this.getPlayerElement().stop();
} }
this.parent_stop();
}, },


/** /**
Expand Down
2 changes: 1 addition & 1 deletion mwEmbedFrame.php
Expand Up @@ -58,7 +58,7 @@ class mwEmbedFrame {
); );
var $playerIframeId = 'iframeVid'; var $playerIframeId = 'iframeVid';
var $debug = false; var $debug = false;
var $theme = 'kdark'; var $theme = 'kdark';




// When used in direct source mode the source asset. // When used in direct source mode the source asset.
Expand Down

0 comments on commit a6cc09c

Please sign in to comment.