From 32c1badcd9b5f795ae5df1e7bacdcca9e1129449 Mon Sep 17 00:00:00 2001 From: Tim Hobbs Date: Tue, 8 Apr 2014 16:12:09 -0700 Subject: [PATCH] Video fixes Variable collision caused some issues - sorted --- dashboard-ui/scripts/mediaplayer-video.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/dashboard-ui/scripts/mediaplayer-video.js b/dashboard-ui/scripts/mediaplayer-video.js index 5569a461e2..9d7c1a93df 100644 --- a/dashboard-ui/scripts/mediaplayer-video.js +++ b/dashboard-ui/scripts/mediaplayer-video.js @@ -872,18 +872,18 @@ $('#video-fullscreenButton', videoControls).show(); } - var videoElement = $("video", videoElement); + var video = $("video", videoElement); initialVolume = localStorage.getItem("volume") || 0.5; - videoElement.each(function () { + video.each(function () { this.volume = initialVolume; }); self.volumeSlider.val(initialVolume).slider('refresh'); self.updateVolumeButtons(initialVolume); - videoElement.on("volumechange", function (e) { + video.on("volumechange", function (e) { var muted = this.muted; @@ -899,13 +899,13 @@ }).on("play.once", function () { - videoElement.off("play.once"); + video.off("play.once"); }).on("playing.once", function () { self.updateCanClientSeek(this); - videoElement.off("playing.once"); + video.off("playing.once"); ApiClient.reportPlaybackStart(Dashboard.getCurrentUserId(), item.Id, mediaSource.Id, true, item.MediaType); @@ -1037,7 +1037,7 @@ currentItem = item; currentMediaSource = mediaSource; - return videoElement[0]; + return video[0]; } }; })(); \ No newline at end of file