reset and begin
7/02/2010

html5 video

để hiển thị video trong html 5 bạn dùng thẻ video
<video src="movie.ogg" controls="controls">
</video>

controls="controls" với "controls" có thể là play, pause, and volume controls.

vài thuộc tính video trong html5







































autoplayautoplaySpecifies that the video will start playing as soon as it is ready
controlscontrolsSpecifies that controls will be displayed, such as a play button.
heightpixelsSpecifies the height of the video player
looploopSpecifies that the media file will start over again, every time it is finished.
preloadpreloadSpecifies that the video will be loaded at page load, and ready to run. Ignored if "autoplay" is present.
srcurlSpecifies that the URL of the video to play
widthpixels


ví dụ

<video width="320" height="240" controls="controls">
<source src="movie.ogg" type="video/ogg" />
<source src="movie.mp4" type="video/mp4" />
Your browser does not support the video tag.
</video>

Bloger Comments
G+ Comments
Comments FaceBook

No comments:

List

Profiles Information


About me : Nothing is 1 vài thứ - 1985

Places I've Lived : I Hà Nội

Home Page : http://www.shimivn.blogspot.com/

Think : 1:1000000000

Languages spoken : Vietnamese,English.

Mobile : sony C2305

dell : i3-Ram 3GB- HDD 250GB .