in conjunction with duration for some interesting effects, which we will explore later.
ended
true or false, depending on whether the video has finished playing.
muted
true or false. Used to inquire whether the sound of the playing video has been muted.
paused
true or false. Used to inquire whether the video is currently paused.
NOTE
There are even more properties that exist for HTMLVideoElement. Check them out at http://www.w3.org/2010/05/video/mediaevents.html.
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.
To support all three formats at once, we must use an alternative method for setting the src attribute of the