mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Fix on json
This commit is contained in:
@@ -40,22 +40,20 @@
|
|||||||
#next_song{
|
#next_song{
|
||||||
display:none;
|
display:none;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
background: rgba(255,255,255,0.2);
|
background: rgba(0,0,0,0.4);
|
||||||
right: 10px;
|
right: 10px;
|
||||||
bottom: 10px;
|
bottom: 10px;
|
||||||
border: 1px solid white;
|
border: 1px solid white;
|
||||||
width: 15rem;
|
width: 26rem;
|
||||||
height: 7rem;
|
height: 7rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
#next_pic{
|
#next_pic{
|
||||||
height: 7rem;
|
height: 7rem;
|
||||||
width: 7rem;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#next_title{
|
#next_title{
|
||||||
align-self: center;
|
align-self: center;
|
||||||
width: 8rem;
|
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
color: white;
|
color: white;
|
||||||
display:flex;
|
display:flex;
|
||||||
|
|||||||
@@ -136,7 +136,7 @@ function onPlayerStateChange(event) {
|
|||||||
//channel.send({'event':'stateChange','message':event.data});
|
//channel.send({'event':'stateChange','message':event.data});
|
||||||
console.log(event);
|
console.log(event);
|
||||||
if (event.data==YT.PlayerState.ENDED) {
|
if (event.data==YT.PlayerState.ENDED) {
|
||||||
customMessageBus.broadcast("{type: -1, videoId: " + videoId + "}")
|
customMessageBus.broadcast("{type: -1, videoId: '" + videoId + "'}")
|
||||||
customMessageBus.send("urn:x-cast:zoff.no", {type: -1, videoId: videoId})
|
//customMessageBus.send("urn:x-cast:zoff.no", {type: -1, videoId: videoId})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user