// Video hadn't loaded yet when ctor was called
vid.video = document.getElementById( playerId );
vid.duration = vid.video.getDuration();
+
// Issue load event
vid.dispatchEvent( 'load' );
this.loadStarted = false;
this.loadedData = false;
this.fullyLoaded = false;
+ this.paused = true;
// If supplied as number, append 'px' on end
// If suppliied as '###' or '###px', convert to number and append 'px' back on end
// Prevent Youtube's behaviour to start playing video after seeking.
if ( !playing ) {
+ this.video.paused = true;
this.video.pauseVideo();
+ } else {
+ this.video.paused = false;
}
// Data need to be loaded again.