HTML | DOM Video poster Property
The Video poster property is used for setting or returning the value of the poster attribute of a video. The poster attribute is specifically used to display an image while the video is being downloaded, or until the play button is hit by the user.
The first frame of the video is displayed if the poster option is not included.
Return the poster property:
Set the poster property:
videoObject.poster = URL
- URL : It is used to specify the URL of the image file.
Below program illustrates the Video Poster property :
Example: Changing the poster image of a video.
Before clicking the button::
After clicking the button:
- Apple Safari
- Internet Explorer
- Google Chrome
Attention reader! Don’t stop learning now. Get hold of all the important Comcompetitivepetitve Programming concepts with the Web Design for Beginners | HTML course.