How video sharing sites perform autoplay with audio on Chrome

Asked

Viewed 88 times

0

2 answers

2

HTML5 itself has an attribute in the video tag of self-play

<video controls autoplay>
  <source src="https://www.w3schools.com/TAgs/movie.mp4" type="video/mp4">
  <source src="https://www.w3schools.com/TAgs/movie.mp4" type="video/ogg">
  Your browser does not support the video tag.
</video>

  • The autoplay property does not work if the video is audio, as described in the question link

0

as the colleague said above Html5 itself already has this option is only to use autoplay but this option does not work very well on mainly Android phones because many browsers block autoplay and there is no way to do anything else recommend you take a look at this link to can better understand video tag attributes Right here

  • The autoplay property does not work if the video is audio, as described in the question link, but some websites can perform autoplay

  • further by what I know of to use the same option in the audio tag as well

Browser other questions tagged

You are not signed in. Login or sign up in order to post.