mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
vulcanize
This commit is contained in:
parent
07df993238
commit
55e40bdcf7
52 changed files with 12309 additions and 33 deletions
36
dashboard-ui/cordova/connectsdk.js
vendored
Normal file
36
dashboard-ui/cordova/connectsdk.js
vendored
Normal file
|
@ -0,0 +1,36 @@
|
|||
(function () {
|
||||
|
||||
function initSdk() {
|
||||
|
||||
var manager = ConnectSDK.discoveryManager;
|
||||
|
||||
//manager.setPairingLevel(ConnectSDK.PairingLevel.OFF);
|
||||
manager.setAirPlayServiceMode(ConnectSDK.AirPlayServiceMode.Media);
|
||||
|
||||
// Show devices that support playing videos and pausing
|
||||
//manager.setCapabilityFilters([
|
||||
// new ConnectSDK.CapabilityFilter(["MediaPlayer.Display.Video", "MediaControl.Pause"])
|
||||
//]);
|
||||
|
||||
manager.on('devicelistchanged', onDeviceListChanged);
|
||||
|
||||
manager.startDiscovery();
|
||||
|
||||
requirejs(['cordova/chromecast', 'cordova/generaldevice']);
|
||||
}
|
||||
|
||||
function onDeviceListChanged(list) {
|
||||
}
|
||||
|
||||
function getDeviceList() {
|
||||
return ConnectSDK.discoveryManager.getDeviceList();
|
||||
}
|
||||
|
||||
window.ConnectSDKHelper = {
|
||||
|
||||
getDeviceList: getDeviceList
|
||||
};
|
||||
|
||||
Dashboard.ready(initSdk);
|
||||
|
||||
})();
|
Loading…
Add table
Add a link
Reference in a new issue