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.
Attention reader! Don’t stop learning now. Get hold of all the important HTML concepts with the Web Design for Beginners | HTML course.
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
- Internet Explorer
- Apple Safari