HTML5 Audio and Video - PowerPoint PPT Presentation

1 / 5
About This Presentation
Title:

HTML5 Audio and Video

Description:

Title: CHAPTER 1 Author: Michael V. Ekedahl Last modified by: Michael Ekedahl Created Date: 1/1/2001 12:26:29 AM Document presentation format: On-screen Show (4:3) – PowerPoint PPT presentation

Number of Views:97
Avg rating:3.0/5.0
Slides: 6
Provided by: jigish
Category:
Tags: audio | html5 | video

less

Transcript and Presenter's Notes

Title: HTML5 Audio and Video


1
HTML5 Audio and Video
2
History
  • Playing audio and video used to be something of a
    novelty
  • You would embed a control (with the ltembedgt
    element) into your page to use Flash, Quicktime,
    Windows Media, to play the thing
  • HTML5 supplies simple audio / video support
    through the ltaudiogt and ltvideogt tags
  • Both work similarly

3
Limitations
  • Its still client-side
  • You cannot use these tags to stream video
  • There is NO copy protection
  • Its not adaptive

4
The ltaudiogt element
  • the ltaudiogt 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
  • http//www.w3schools.com/tags/tag_audio.asp

5
The ltvideogt Element
  • Works much like the ltaudiogt element
  • The poster attribute displays an image while the
    video is loading
  • http//www.w3schools.com/tags/tag_video.asp
Write a Comment
User Comments (0)
About PowerShow.com