So it would look like the code below? The controls were still there and it made the video not autoplay…
window.myVideo = hypeDocument.getElementById('ch4dance');
myVideo.addEventListener('timeupdate', syncTimelines);
myVideo.play();
function syncTimelines() {
videoTime = myVideo.currentTime;
hypeDocument.goToTimeInTimelineNamed(videoTime, 'Main Timeline');
if (!myVideo.paused) {
hypeDocument.continueTimelineNamed('Main Timeline');
}
else if (myVideo.paused) {
hypeDocument.pauseTimelineNamed('Main Timeline');
}
}
function hide(){
video.removeAttribute( 'controls' );
}