mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-17 19:08:18 -07:00
don't use socket to report start/stop
This commit is contained in:
parent
5fd8da389b
commit
2ba4c49630
@ -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({
|
||||
|
Loading…
Reference in New Issue
Block a user