fixed bug when you play a video and one is already playing

This commit is contained in:
Techywarrior 2013-04-03 15:55:28 -07:00
parent 4351fda3d1
commit efda2ca3f5

View file

@ -169,6 +169,8 @@
},
playVideo: function (items, startPosition) {
//stop/kill videoJS
if (MediaPlayer.mediaElement) MediaPlayer.stop();
var item = items[0];
@ -248,7 +250,7 @@
localStorage.setItem("volume", (this).volume());
});
(this).addEvent("play", MediaPlayer.updateProgress);
(this).addEvent("play", MediaPlayer.updateProgress);
ApiClient.reportPlaybackStart(Dashboard.getCurrentUserId(), item.Id);
});