Browse Source

Removed access to YouTube's default controls

theflametrooper 8 years ago
parent
commit
d02555e4a9

+ 1 - 1
frontend/components/Admin/QueueSongs.vue

@@ -234,7 +234,7 @@
 				height: 315,
 				width: 560,
 				videoId: this.editing.song._id,
-				playerVars: { controls: 1, iv_load_policy: 3, rel: 0, showinfo: 0 },
+				playerVars: { controls: 0, iv_load_policy: 3, rel: 0, showinfo: 0 },
 				events: {
 					'onStateChange': event => {
 						if (event.data == 1) {

+ 1 - 1
frontend/components/Admin/Songs.vue

@@ -226,7 +226,7 @@
 				height: 315,
 				width: 560,
 				videoId: this.editing.song._id,
-				playerVars: { controls: 1, iv_load_policy: 3, rel: 0, showinfo: 0 },
+				playerVars: { controls: 0, iv_load_policy: 3, rel: 0, showinfo: 0 },
 				events: {
 					'onStateChange': event => {
 						if (event.data == 1) {

+ 1 - 3
frontend/components/Station/Station.vue

@@ -122,7 +122,7 @@
 					height: 270,
 					width: 480,
 					videoId: local.currentSong._id,
-					playerVars: { controls: 1, iv_load_policy: 3, rel: 0, showinfo: 0 },
+					playerVars: { controls: 0, iv_load_policy: 3, rel: 0, showinfo: 0 },
 					events: {
 						'onReady': function(event) {
 							local.playerReady = true;
@@ -273,7 +273,6 @@
 					_this.youtubeReady();
 					_this.playVideo();
 					_this.socket.emit('songs.getOwnSongRatings', data.currentSong._id, data => {
-						console.log(data);
 						if (_this.currentSong._id === data.songId) {
 							_this.liked = data.liked;
 							_this.disliked = data.disliked;
@@ -291,7 +290,6 @@
 				_this.timePaused = data.timePaused;
 				_this.playVideo();
 				_this.socket.emit('songs.getOwnSongRatings', data.currentSong._id, (data) => {
-					console.log(data);
 					if (_this.currentSong._id === data.songId) {
 						_this.liked = data.liked;
 						_this.disliked = data.disliked;