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} itemId
|
||||
*/
|
||||
self.reportPlaybackProgress = function (userId, itemId, mediaSourceId, params) {
|
||||
self.reportPlaybackProgress = function (userId, itemId, mediaSourceId, positionTicks, isPaused, isMuted) {
|
||||
|
||||
if (!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 += "|" + (mediaSourceId == null ? "" : mediaSourceId);
|
||||
|
||||
msgData += "|" + (params.audioStreamIndex == null ? "" : params.audioStreamIndex);
|
||||
msgData += "|" + (params.subtitleStreamIndex == null ? "" : params.subtitleStreamIndex);
|
||||
msgData += "|" + (params.volumeLevel == null ? "" : params.volumeLevel);
|
||||
////msgData += "|" + (params.audioStreamIndex == null ? "" : params.audioStreamIndex);
|
||||
////msgData += "|" + (params.subtitleStreamIndex == null ? "" : params.subtitleStreamIndex);
|
||||
////msgData += "|" + (params.volumeLevel == null ? "" : params.volumeLevel);
|
||||
|
||||
self.sendWebSocketMessage("PlaybackProgress", msgData);
|
||||
|
||||
|
@ -3877,14 +3877,14 @@ MediaBrowser.ApiClient = function ($, navigator, JSON, WebSocket, setTimeout, wi
|
|||
return deferred.promise();
|
||||
}
|
||||
|
||||
////var params = {
|
||||
//// isPaused: isPaused,
|
||||
//// isMuted: isMuted
|
||||
////};
|
||||
var params = {
|
||||
isPaused: isPaused,
|
||||
isMuted: isMuted
|
||||
};
|
||||
|
||||
////if (positionTicks) {
|
||||
//// params.positionTicks = positionTicks;
|
||||
////}
|
||||
if (positionTicks) {
|
||||
params.positionTicks = positionTicks;
|
||||
}
|
||||
|
||||
if (mediaSourceId) {
|
||||
params.mediaSourceId = mediaSourceId;
|
||||
|
|
Loading…
Reference in New Issue
Block a user