I am a stupid person

This commit is contained in:
Kasper Rynning-Tønnesen
2016-11-18 20:09:05 +01:00
parent b648316b51
commit 88dafeb561
3 changed files with 9 additions and 4 deletions

View File

@@ -136,7 +136,7 @@ function onPlayerStateChange(event) {
//channel.send({'event':'stateChange','message':event.data});
console.log(event);
if (event.data==YT.PlayerState.ENDED) {
customMessageBus.broadcast(JSON.stringify({type: -1, videoId: " + videoId + "}));
customMessageBus.broadcast(JSON.stringify({type: -1, videoId: videoId}));
//customMessageBus.send("urn:x-cast:zoff.no", {type: -1, videoId: videoId})
}
}