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

update live tv media sources

This commit is contained in:
Luke Pulverenti 2015-05-18 12:40:20 -04:00
parent 4b6692c92d
commit 9336922f29
9 changed files with 440 additions and 11 deletions

View file

@ -0,0 +1,37 @@
(function () {
function onDeviceFound() {
}
function onDeviceLost() {
}
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.addListener('devicefound', onDeviceFound);
manager.addListener('devicelost', onDeviceLost);
requirejs(['thirdparty/cordova/chromecast']);
}
document.addEventListener("deviceready", function () {
initSdk();
}, false);
})();