0

I'm trying to make a web page that plays some videos in random and indefinite with VBScript and the tag <embed>.I have found an example but use JavaScript and HTML5, attachment link.

HTML5 video how to play two videos in one video element

<video id="myvideo"width="320" height="240">
    <embed src="images\s1.mp4" type="video/mp4" showcontrols="0" loop="true" autostart="true"/>
    <embed src="images\s2.mp4"type="video/mp4" showcontrols="0" loop="true" autostart="true"/>  
</video>
Community
  • 1
  • 1
Focus0
  • 1
  • 1

1 Answers1

1

<embed> tags are only used for embedding objects like Shockwave Flash. <video> tags do not support <embed> tags.

You should only use <src> tags.

Also - add the autoplay and loop tags in the video element, not in the src:

<video id="myvideo" width="320" height="240" autoplay loop>
    <src="images\s1.mp4" type="video/mp4" />
    <src="images\s2.mp4" type="video/mp4"/>    
</video>

Read more here.

user692942
  • 16,398
  • 7
  • 76
  • 175
Koby Douek
  • 16,156
  • 19
  • 74
  • 103
  • Thanks for your help, I have reviewed and was using IE 8 that does not support that tag. Now that I have updated to IE 11 I have not been able to make it play the video. – Focus0 Mar 14 '17 at 19:07
  • `src` is an attribute of the `source` element/tag. cf https://developer.mozilla.org/en-US/docs/Web/HTML/Element/source – Ekkehard.Horner Mar 15 '17 at 16:39