mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Removed some window-variables
This commit is contained in:
@@ -463,11 +463,7 @@ function loadChromecastVideo() {
|
|||||||
thumbnail: Player.np.thumbnail != undefined ? Player.np.thumbnail : 'https://img.youtube.com/vi/'+video_id+'/mqdefault.jpg',
|
thumbnail: Player.np.thumbnail != undefined ? Player.np.thumbnail : 'https://img.youtube.com/vi/'+video_id+'/mqdefault.jpg',
|
||||||
};
|
};
|
||||||
castSession.loadMedia(request).then(function() {
|
castSession.loadMedia(request).then(function() {
|
||||||
var _player = new cast.framework.RemotePlayer();
|
console.log("Loaded chromecast-video. Don't look here, look at your TV!");
|
||||||
var _controller = new cast.framework.RemotePlayerController(_player);
|
|
||||||
window._controller = _controller;
|
|
||||||
window._player = _player;
|
|
||||||
|
|
||||||
},
|
},
|
||||||
function(errorCode) {
|
function(errorCode) {
|
||||||
console.log('Error code: ' + errorCode);
|
console.log('Error code: ' + errorCode);
|
||||||
|
|||||||
Reference in New Issue
Block a user