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:
parent
4b6692c92d
commit
9336922f29
9 changed files with 440 additions and 11 deletions
37
dashboard-ui/thirdparty/cordova/connectsdk.js
vendored
Normal file
37
dashboard-ui/thirdparty/cordova/connectsdk.js
vendored
Normal 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);
|
||||
|
||||
|
||||
})();
|
Loading…
Add table
Add a link
Reference in a new issue