4. Audio and Video

1.video : support of three formats: Ogg, MPEG4, WebM.

Src attribute: To play a video address.

Width Attribute: Width.

Height attributes: height.

Autoplay Properties: Autoplay.

Loop Properties: Loop.

Controls property: display controls, such as play buttons to the user.

Poster property: preview image before video playback.

Preload property: whether the video is loaded when the page is loaded, and ready to play, usually the default.

Audio 2. : support of three formats: Ogg, MP3, Wav.

        

3.source resolve browser compatibility issues: the principle is to specify multiple file sources.

Note: If the source element, you can not use the src element.

 

 

4.embed : definition of embedded content, such as plug-ins.

 Object : definition of an embedded object, used to contain objects. For example: images, audio, video, flash.

 

 

Guess you like

Origin www.cnblogs.com/chenJieLing/p/11607077.html