fix chromecast script error

This commit is contained in:
Luke Pulverenti 2016-01-04 21:07:17 -05:00
parent 582e695ed3
commit 05cb18e107

View File

@ -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) {