Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
6 lines (5 sloc) 305 Bytes

The load method helps you programmatically control either the [[audio]] and [[video]] elements using JavaScript. This method causes the selection to start playing if it is not playing, and does nothing if it is already playing.

document
  .querySelector('audioOrVideoSelector')
  .play()