VIDEO IN HTML

Status
This thread has been locked.

gatg

Premium
Feedback score
4
Posts
41
Reactions
9
Resources
0
I want to put a youtube video on my website that will autoplay as a background
 
PebbleHost
High performance, consistent uptime and fast support. Minecraft hosting that just works.

AlexFlipnote

Feedback score
1
Posts
6
Reactions
2
Resources
0
Might want to add:
Having videos automatically played from either Chrome or possibly other browsers too in latest update will need to have you mute the source. Either that or you need the user to interact with the website to then be allowed playing any kind of video with volume.

The mute rule is applied to source inside a <video>, having this (example) will make it playable in background
HTML:
<video autoplay muted>
  <source src="video.webm" type="video/webm" />
  <source src="video.mp4" type="video/mp4" />
</video>

More information about such can be found here:
https://developers.google.com/web/updates/2016/07/autoplay

EDIT: Fixed first paragraph with grammar.
 
Status
This thread has been locked.
Top