mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-18 03:18:19 -07:00
fix chromecast script error
This commit is contained in:
parent
582e695ed3
commit
05cb18e107
@ -341,8 +341,6 @@
|
||||
|
||||
var player = this;
|
||||
|
||||
var bitrateSetting = AppSettings.maxChromecastBitrate();
|
||||
|
||||
var receiverName = null;
|
||||
|
||||
if (castPlayer.session && castPlayer.session.receiver && castPlayer.session.receiver.friendlyName) {
|
||||
@ -354,11 +352,14 @@
|
||||
deviceId: ApiClient.deviceId(),
|
||||
accessToken: ApiClient.accessToken(),
|
||||
serverAddress: ApiClient.serverAddress(),
|
||||
maxBitrate: bitrateSetting,
|
||||
receiverName: receiverName,
|
||||
supportsAc3: AppSettings.enableChromecastAc3()
|
||||
receiverName: receiverName
|
||||
});
|
||||
|
||||
var bitrateSetting = AppSettings.maxChromecastBitrate();
|
||||
if (bitrateSetting) {
|
||||
message.maxBitrate = bitrateSetting;
|
||||
}
|
||||
|
||||
require(['chromecasthelpers'], function (chromecasthelpers) {
|
||||
|
||||
chromecasthelpers.getServerAddress(ApiClient).then(function (serverAddress) {
|
||||
|
Loading…
Reference in New Issue
Block a user