mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Undo changes
This commit is contained in:
parent
95686255f5
commit
afcaea8b0c
1 changed files with 6 additions and 9 deletions
|
@ -89,7 +89,7 @@
|
||||||
|
|
||||||
// v1 Id AE4DA10A
|
// v1 Id AE4DA10A
|
||||||
// v2 Id 472F0435
|
// v2 Id 472F0435
|
||||||
var applicationID = '472F0435';
|
var applicationID = 'AE4DA10A';
|
||||||
|
|
||||||
// request session
|
// request session
|
||||||
var sessionRequest = new chrome.cast.SessionRequest(applicationID);
|
var sessionRequest = new chrome.cast.SessionRequest(applicationID);
|
||||||
|
@ -429,7 +429,7 @@
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
function getCustomData(item, mediaSourceId, startTimeTicks, audioStreamIndex, subtitleStreamIndex) {
|
function getCustomData(item, mediaSourceId, startTimeTicks) {
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|
||||||
|
@ -438,9 +438,7 @@
|
||||||
userId: Dashboard.getCurrentUserId(),
|
userId: Dashboard.getCurrentUserId(),
|
||||||
deviceName: ApiClient.deviceName(),
|
deviceName: ApiClient.deviceName(),
|
||||||
//deviceId: ApiClient.deviceId(),
|
//deviceId: ApiClient.deviceId(),
|
||||||
startTimeTicks: startTimeTicks || 0,
|
startTimeTicks: startTimeTicks || 0
|
||||||
audioStreamIndex: audioStreamIndex,
|
|
||||||
subtitleStreamIndex: subtitleStreamIndex
|
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -626,7 +624,7 @@
|
||||||
|
|
||||||
var castMediaInfo = new chrome.cast.media.MediaInfo(streamUrl);
|
var castMediaInfo = new chrome.cast.media.MediaInfo(streamUrl);
|
||||||
|
|
||||||
castMediaInfo.customData = getCustomData(item, mediaInfo.mediaSource.Id, startTimeTicks, audioStreamIndex, subtitleStreamIndex);
|
castMediaInfo.customData = getCustomData(item, mediaInfo.mediaSource.Id, startTimeTicks);
|
||||||
castMediaInfo.metadata = getMetadata(item);
|
castMediaInfo.metadata = getMetadata(item);
|
||||||
|
|
||||||
if (mediaInfo.streamContainer == 'm3u8') {
|
if (mediaInfo.streamContainer == 'm3u8') {
|
||||||
|
@ -643,9 +641,8 @@
|
||||||
|
|
||||||
this.castPlayerState = PLAYER_STATE.LOADING;
|
this.castPlayerState = PLAYER_STATE.LOADING;
|
||||||
this.session.loadMedia(request,
|
this.session.loadMedia(request,
|
||||||
this.onMediaDiscovered.bind(this, 'loadMedia'),
|
this.onMediaDiscovered.bind(this, 'loadMedia'),
|
||||||
this.onLoadMediaError.bind(this)
|
this.onLoadMediaError.bind(this));
|
||||||
);
|
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue