mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Add chromecast fixes
This commit is contained in:
parent
ab16ffbef2
commit
c3f416c2ff
1 changed files with 9 additions and 9 deletions
|
@ -54,6 +54,7 @@
|
||||||
var applicationID = "2D4B1DA3";
|
var applicationID = "2D4B1DA3";
|
||||||
|
|
||||||
// This is the beta version used for testing new changes
|
// This is the beta version used for testing new changes
|
||||||
|
|
||||||
//applicationID = '27C4EB5B';
|
//applicationID = '27C4EB5B';
|
||||||
|
|
||||||
var messageNamespace = 'urn:x-cast:com.connectsdk';
|
var messageNamespace = 'urn:x-cast:com.connectsdk';
|
||||||
|
@ -843,22 +844,21 @@
|
||||||
|
|
||||||
self.tryPair = function (target) {
|
self.tryPair = function (target) {
|
||||||
|
|
||||||
castPlayer.launchApp();
|
|
||||||
return new Promise(function (resolve, reject) {
|
|
||||||
if (castPlayer.deviceState != DEVICE_STATE.ACTIVE && castPlayer.isInitialized) {
|
if (castPlayer.deviceState != DEVICE_STATE.ACTIVE && castPlayer.isInitialized) {
|
||||||
|
|
||||||
|
return new Promise(function (resolve, reject) {
|
||||||
currentResolve = resolve;
|
currentResolve = resolve;
|
||||||
currentReject = reject;
|
currentReject = reject;
|
||||||
|
|
||||||
castPlayer.launchApp();
|
castPlayer.launchApp();
|
||||||
|
});
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
currentResolve = null;
|
currentResolve = null;
|
||||||
currentReject = null;
|
currentReject = null;
|
||||||
|
|
||||||
reject();
|
return Promise.reject();
|
||||||
}
|
}
|
||||||
});
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue