Browse Source

Added auto voteToSkip being called when the iframe doesn't load.

KrisVos130 8 years ago
parent
commit
cef14ed9a9
1 changed files with 4 additions and 0 deletions
  1. 4 0
      frontend/components/Station/Station.vue

+ 4 - 0
frontend/components/Station/Station.vue

@@ -157,6 +157,10 @@
 								if (volume > 0) local.player.unMute();
 								local.playVideo();
 							},
+							'onError': function(err) {
+								console.log("iframe error", err);
+								local.voteSkipStation();
+							},
 							'onStateChange': function (event) {
 								if (event.data === 1 && local.videoLoading === true) {
 									local.videoLoading = false;