|
|
|
@ -65,6 +65,8 @@ define(['jquery', 'underscore', 'text!partials/youtubevideo.html', 'bigscreen'],
@@ -65,6 +65,8 @@ define(['jquery', 'underscore', 'text!partials/youtubevideo.html', 'bigscreen'],
|
|
|
|
|
$scope.currentVideoId = null; |
|
|
|
|
$scope.youtubeurl = ""; |
|
|
|
|
$scope.youtubeAPIReady = false; |
|
|
|
|
$scope.volumebarVisible = true; |
|
|
|
|
$scope.volume = null; |
|
|
|
|
|
|
|
|
|
isYouTubeIframeAPIReady.done(function() { |
|
|
|
|
$scope.$apply(function(scope) { |
|
|
|
@ -74,6 +76,7 @@ define(['jquery', 'underscore', 'text!partials/youtubevideo.html', 'bigscreen'],
@@ -74,6 +76,7 @@ define(['jquery', 'underscore', 'text!partials/youtubevideo.html', 'bigscreen'],
|
|
|
|
|
|
|
|
|
|
var onPlayerReady = function(event) { |
|
|
|
|
$scope.$apply(function(scope) { |
|
|
|
|
scope.volume = player.getVolume(); |
|
|
|
|
playerReady.resolve(); |
|
|
|
|
}); |
|
|
|
|
}; |
|
|
|
@ -544,6 +547,13 @@ define(['jquery', 'underscore', 'text!partials/youtubevideo.html', 'bigscreen'],
@@ -544,6 +547,13 @@ define(['jquery', 'underscore', 'text!partials/youtubevideo.html', 'bigscreen'],
|
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
$scope.$watch("volume", function(newval, oldval) { |
|
|
|
|
// allow "viewers" to change the volume manually
|
|
|
|
|
if (oldval !== newval && player && !$scope.isPublisher && newval !== null) { |
|
|
|
|
player.setVolume(newval); |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
$scope.toggleFullscreen = function(elem) { |
|
|
|
|
|
|
|
|
|
if (BigScreen.enabled) { |
|
|
|
|