1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

vulcanize

This commit is contained in:
Luke Pulverenti 2015-06-20 00:48:45 -04:00
parent 07df993238
commit 55e40bdcf7
52 changed files with 12309 additions and 33 deletions

36
dashboard-ui/cordova/connectsdk.js vendored Normal file
View 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);
})();