Trying to finish, but have Video giving me a hard time


hi,

i can't seem figure out how put 5 second delay on video before starts. know have add script, not sure how or where.

using dreamweaver cc 2014. basic code video.

 

<video id="myvideo" preload="auto" controls autoplay >

      <source src="videos/ron video 8.mp4" type="video/mp4">

    </video>

 

any appreciated.

 

randy

you should able take out autoplay attribute, create small javascript like...

 

<script>
settimeout(function(){

     document.getelementbyid("myvideo").play();
}, 5000);
</script>

 

place above code in <head></head> section , make sure video doesn't have autoplay attribute. make sure id of <video> tag same id in (" ") on third line of script.

 

that should trick.



More discussions in Dreamweaver support forum


adobe

Comments