From 6c4be34378fc3814560c992d981bbdd7f931569d Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Thu, 25 Jul 2013 15:43:40 -0400 Subject: [PATCH] fixed remote control issues --- dashboard-ui/scripts/mediaplayer.js | 6 ++++-- dashboard-ui/scripts/site.js | 1 + 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/dashboard-ui/scripts/mediaplayer.js b/dashboard-ui/scripts/mediaplayer.js index 127cbc84bd..b4a325ff02 100644 --- a/dashboard-ui/scripts/mediaplayer.js +++ b/dashboard-ui/scripts/mediaplayer.js @@ -118,7 +118,7 @@ function sendProgressUpdate(itemId) { - ApiClient.reportPlaybackProgress(Dashboard.getCurrentUserId(), itemId, getCurrentTicks()); + ApiClient.reportPlaybackProgress(Dashboard.getCurrentUserId(), itemId, getCurrentTicks(), currentMediaElement.paused); } function clearProgressInterval() { @@ -1064,7 +1064,9 @@ }; self.seek = function (position) { - currentMediaElement.currentTime = position / (1000 * 10000); + + changeStream(position); + }; self.mute = function () { diff --git a/dashboard-ui/scripts/site.js b/dashboard-ui/scripts/site.js index 649afbcd9f..d91f2944f7 100644 --- a/dashboard-ui/scripts/site.js +++ b/dashboard-ui/scripts/site.js @@ -791,6 +791,7 @@ var Dashboard = { } else if (msg.MessageType === "Playstate") { + if (msg.Data.Command === 'Stop') { MediaPlayer.stop(); }