src/main/webapp/static/js/embedYoutube.js
//    the player should play for six seconds and then stop.
the player should play for six seconds and then stop.
the player should play for six seconds and then stop .
function onPlayerStateChange(event) {
    if (event.data == YT.PlayerState.PLAYING && !done) {
        setTimeout(stopVideo, 6000);
        done = true;
    }
}
function onPlayerStateChange ( event ) { if ( event . data == YT . PlayerState . PLAYING && ! done ) { setTimeout ( stopVideo , 6000 ) ; done = true ; } }
the player should play for six seconds and then stop.
the player should play for six seconds and then stop .