Fix on json

This commit is contained in:
Kasper Rynning-Tønnesen
2016-11-18 19:53:14 +01:00
parent ced8db7de1
commit 9aebd4445c
2 changed files with 4 additions and 6 deletions

View File

@@ -40,22 +40,20 @@
#next_song{
display:none;
position: absolute;
background: rgba(255,255,255,0.2);
background: rgba(0,0,0,0.4);
right: 10px;
bottom: 10px;
border: 1px solid white;
width: 15rem;
width: 26rem;
height: 7rem;
}
#next_pic{
height: 7rem;
width: 7rem;
}
#next_title{
align-self: center;
width: 8rem;
overflow: hidden;
color: white;
display:flex;

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("{type: -1, videoId: " + videoId + "}")
customMessageBus.send("urn:x-cast:zoff.no", {type: -1, videoId: videoId})
customMessageBus.broadcast("{type: -1, videoId: '" + videoId + "'}")
//customMessageBus.send("urn:x-cast:zoff.no", {type: -1, videoId: videoId})
}
}