next attempt #7
@@ -90,9 +90,8 @@
|
|||||||
var done = false;
|
var done = false;
|
||||||
function onPlayerStateChange(event) {
|
function onPlayerStateChange(event) {
|
||||||
if (event.data == 0) {
|
if (event.data == 0) {
|
||||||
console.log("playing stopped");
|
|
||||||
// it seems like there is a race condition happening here
|
|
||||||
playNext();
|
playNext();
|
||||||
|
console.log("playing stopped");
|
||||||
}
|
}
|
||||||
//if (event.data == YT.PlayerState.PLAYING && !done) {
|
//if (event.data == YT.PlayerState.PLAYING && !done) {
|
||||||
// setTimeout(stopVideo, 6000);
|
// setTimeout(stopVideo, 6000);
|
||||||
|
|||||||
Reference in New Issue
Block a user