HTML and CSS Reference
In-Depth Information
There are also some methods of HTMLVideoElement that are necessary when playing video
in conjunction with JavaScript and Canvas:
A method used to start playing a video.
A method used to pause a video that is playing.
Additionally, there are some properties you can use to check the status of a video,
The length of the video in seconds.
The current playing time of the video in seconds. This can be used in conjunction
with duration for some interesting effects, which we will explore later.
true or false , depending on whether the video has finished playing.
true or false . Used to inquire whether the sound of the playing video has been
true or false . Used to inquire whether the video is currently paused.
There are even more properties that exist for HTMLVideoElement . Check
them out at .
Plain-Vanilla Video Embed
To demonstrate a plain-vanilla embed, we are going to work under our previously
established rules for video formats. We will use three formats because no one format
will work in every browser. We have created a version of the Muir Beach video as
a .webm , an .ogg , and a .mp4 . For the rest of this chapter, we will use all three formats
in all of our video embeds.
Search WWH ::

Custom Search