HTML | DOM Video play( ) Method
The Video play() method is used to start playing the current video. To use the Video play() method, one must use the controls property to display the video controls such as play, pause, seeking, volume, etc, attached on the video.
Note: The Video play() method does not accept any parameters and does not return any values.
Below program illustrates the Video play() method :
Example: Playing a video with the play button.
- Before clicking the button:
- After clicking the button:
Supported Browsers: The browser supported by HTML | DOM Video play( ) Method are listed below:
- Google Chrome 1 and above
- Edge 12 and above
- Internet Explorer 9 and above
- Firefox 3.5 and above
- Opera 10.5 and above
- Apple Safari 3.1 and above