mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-11-16 10:29:01 -07:00
Undo some changes
This commit is contained in:
parent
f74628cca1
commit
f64c7bb0c0
@ -3846,7 +3846,7 @@ MediaBrowser.ApiClient = function ($, navigator, JSON, WebSocket, setTimeout, wi
|
|||||||
* @param {String} userId
|
* @param {String} userId
|
||||||
* @param {String} itemId
|
* @param {String} itemId
|
||||||
*/
|
*/
|
||||||
self.reportPlaybackProgress = function (userId, itemId, mediaSourceId, params) {
|
self.reportPlaybackProgress = function (userId, itemId, mediaSourceId, positionTicks, isPaused, isMuted) {
|
||||||
|
|
||||||
if (!userId) {
|
if (!userId) {
|
||||||
throw new Error("null userId");
|
throw new Error("null userId");
|
||||||
@ -3867,9 +3867,9 @@ MediaBrowser.ApiClient = function ($, navigator, JSON, WebSocket, setTimeout, wi
|
|||||||
msgData += "|" + (params.isMuted == null ? "" : params.isMuted);
|
msgData += "|" + (params.isMuted == null ? "" : params.isMuted);
|
||||||
msgData += "|" + (mediaSourceId == null ? "" : mediaSourceId);
|
msgData += "|" + (mediaSourceId == null ? "" : mediaSourceId);
|
||||||
|
|
||||||
msgData += "|" + (params.audioStreamIndex == null ? "" : params.audioStreamIndex);
|
////msgData += "|" + (params.audioStreamIndex == null ? "" : params.audioStreamIndex);
|
||||||
msgData += "|" + (params.subtitleStreamIndex == null ? "" : params.subtitleStreamIndex);
|
////msgData += "|" + (params.subtitleStreamIndex == null ? "" : params.subtitleStreamIndex);
|
||||||
msgData += "|" + (params.volumeLevel == null ? "" : params.volumeLevel);
|
////msgData += "|" + (params.volumeLevel == null ? "" : params.volumeLevel);
|
||||||
|
|
||||||
self.sendWebSocketMessage("PlaybackProgress", msgData);
|
self.sendWebSocketMessage("PlaybackProgress", msgData);
|
||||||
|
|
||||||
@ -3877,14 +3877,14 @@ MediaBrowser.ApiClient = function ($, navigator, JSON, WebSocket, setTimeout, wi
|
|||||||
return deferred.promise();
|
return deferred.promise();
|
||||||
}
|
}
|
||||||
|
|
||||||
////var params = {
|
var params = {
|
||||||
//// isPaused: isPaused,
|
isPaused: isPaused,
|
||||||
//// isMuted: isMuted
|
isMuted: isMuted
|
||||||
////};
|
};
|
||||||
|
|
||||||
////if (positionTicks) {
|
if (positionTicks) {
|
||||||
//// params.positionTicks = positionTicks;
|
params.positionTicks = positionTicks;
|
||||||
////}
|
}
|
||||||
|
|
||||||
if (mediaSourceId) {
|
if (mediaSourceId) {
|
||||||
params.mediaSourceId = mediaSourceId;
|
params.mediaSourceId = mediaSourceId;
|
||||||
|
Loading…
Reference in New Issue
Block a user