2015-05-18 09:40:20 -07:00
|
|
|
|
(function () {
|
|
|
|
|
|
|
|
|
|
function initSdk() {
|
|
|
|
|
|
|
|
|
|
var manager = ConnectSDK.discoveryManager;
|
|
|
|
|
|
2015-05-19 12:15:40 -07:00
|
|
|
|
//manager.setPairingLevel(ConnectSDK.PairingLevel.OFF);
|
|
|
|
|
//manager.setAirPlayServiceMode(ConnectSDK.AirPlayServiceMode.Media);
|
2015-05-18 09:40:20 -07:00
|
|
|
|
|
|
|
|
|
// Show devices that support playing videos and pausing
|
2015-05-18 15:23:03 -07:00
|
|
|
|
//manager.setCapabilityFilters([
|
|
|
|
|
// new ConnectSDK.CapabilityFilter(["MediaPlayer.Display.Video", "MediaControl.Pause"])
|
|
|
|
|
//]);
|
2015-05-18 09:40:20 -07:00
|
|
|
|
|
2015-05-18 15:23:03 -07:00
|
|
|
|
manager.startDiscovery();
|
|
|
|
|
|
2015-05-19 12:15:40 -07:00
|
|
|
|
requirejs(['thirdparty/cordova/chromecast', 'thirdparty/cordova/generaldevice']);
|
2015-05-18 09:40:20 -07:00
|
|
|
|
}
|
|
|
|
|
|
2015-05-19 12:15:40 -07:00
|
|
|
|
Dashboard.ready(initSdk);
|
2015-05-18 09:40:20 -07:00
|
|
|
|
|
|
|
|
|
})();
|