From 2ba4c496306006a5601da2c304fc66881a65372f Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Sun, 8 Mar 2015 16:01:56 -0400 Subject: [PATCH] don't use socket to report start/stop --- .../apiclient/mediabrowser.apiclient.js | 24 ------------------- 1 file changed, 24 deletions(-) diff --git a/dashboard-ui/thirdparty/apiclient/mediabrowser.apiclient.js b/dashboard-ui/thirdparty/apiclient/mediabrowser.apiclient.js index 6e640de2ef..04de62c0d1 100644 --- a/dashboard-ui/thirdparty/apiclient/mediabrowser.apiclient.js +++ b/dashboard-ui/thirdparty/apiclient/mediabrowser.apiclient.js @@ -3223,18 +3223,6 @@ throw new Error("null options"); } - if (self.isWebSocketOpen()) { - - var deferred = DeferredBuilder.Deferred(); - - var msg = JSON.stringify(options); - - self.sendWebSocketMessage("ReportPlaybackStart", msg); - - deferred.resolveWith(null, []); - return deferred.promise(); - } - var url = self.getUrl("Sessions/Playing"); return self.ajax({ @@ -3289,18 +3277,6 @@ throw new Error("null options"); } - if (self.isWebSocketOpen()) { - - var deferred = DeferredBuilder.Deferred(); - - var msg = JSON.stringify(options); - - self.sendWebSocketMessage("ReportPlaybackStopped", msg); - - deferred.resolveWith(null, []); - return deferred.promise(); - } - var url = self.getUrl("Sessions/Playing/Stopped"); return self.ajax({