HTML5 Audio and Video
Slide 2 History Playing audio and video used to be something of a novelty You would embed a control (with the element) into your page to use Flash, Quicktime, Windows Media, … to play the thing HTML5 supplies simple audio / video support through the and tags Both work similarly
Slide 3 Limitations It’s still client-side You cannot use these tags to stream video There is NO copy protection It’s not adaptive
Slide 4 The element the element plays an audio file Use the src attribute to reference the audio file to play Use the controls attribute to include playback controls The preload attribute preloads the audio file before playing Values metadata, none, auto
Slide 5 The Element Works much like the element The poster attribute displays an image while the video is loading