HTML <video> 鏍囩


瀹炰緥

鎾斁褰曞儚锛

<video width="320" height="240" controls> <source src="movie.mp4" type="video/mp4"> <source src="movie.ogg" type="video/ogg"> 鎮ㄧ殑娴忚鍣ㄤ笉鏀寔 video 鏍囩銆 </video>

灏濊瘯涓涓 禄

娴忚鍣ㄦ敮鎸

琛ㄦ牸涓殑鏁板瓧琛ㄧず鏀寔璇ュ睘鎬х殑绗竴涓祻瑙堝櫒鐗堟湰鍙枫

Element
<video> 4.0 9.0 3.5 4.0 10.5

鏍囩瀹氫箟鍙婁娇鐢ㄨ鏄

好运快三有规律吗—官方网址22270.COM<video> 鏍囩瀹氫箟瑙嗛锛屾瘮濡傜數褰辩墖娈垫垨鍏朵粬瑙嗛娴併

鐩墠锛<video> 鍏冪礌鏀寔涓夌瑙嗛鏍煎紡锛歁P4銆乄ebM銆丱gg銆

娴忚鍣 MP4 WebM Ogg
Internet Explorer YES NO NO
Chrome YES YES YES
Firefox YES
浠 Firefox 21 鐗堟湰寮濮
Linux 绯荤粺浠 Firefox 30 寮濮
YES YES
Safari YES NO NO
Opera YES
浠 Opera 25 鐗堟湰寮濮
YES YES
  • MP4 = MPEG 4鏂囦欢浣跨敤 H264 瑙嗛缂栬В鐮佸櫒鍜孉AC闊抽缂栬В鐮佸櫒
  • WebM = WebM 鏂囦欢浣跨敤 VP8 瑙嗛缂栬В鐮佸櫒鍜 Vorbis 闊抽缂栬В鐮佸櫒
  • Ogg = Ogg 鏂囦欢浣跨敤 Theora 瑙嗛缂栬В鐮佸櫒鍜 Vorbis闊抽缂栬В鐮佸櫒

闊抽鏍煎紡鐨 MIME 绫诲瀷

鏍煎紡 MIME-type
MP4 video/mp4
WebM video/webm
Ogg video/ogg


HTML 4.01 涓 HTML5涔嬮棿鐨勫樊寮

<video> 鏍囩鏄 HTML5 鐨勬柊鏍囩銆


鎻愮ず鍜屾敞閲

鎻愮ず锛鍙互鍦 <video> 鍜 </video> 鏍囩涔嬮棿鏀剧疆鏂囨湰鍐呭锛岃繖鏍蜂笉鏀寔 <video> 鍏冪礌鐨勬祻瑙堝櫒灏卞彲浠ユ樉绀哄嚭璇ユ爣绛剧殑淇℃伅銆


鍙夊睘鎬

New 锛欻TML5 涓殑鏂板睘鎬с

灞炴 鎻忚堪
autoplayNew autoplay 濡傛灉鍑虹幇璇ュ睘鎬э紝鍒欒棰戝湪灏辩华鍚庨┈涓婃挱鏀俱
controlsNew controls 好运快三有规律吗—官方网址22270.COM濡傛灉鍑虹幇璇ュ睘鎬э紝鍒欏悜鐢ㄦ埛鏄剧ず鎺т欢锛屾瘮濡傛挱鏀炬寜閽
heightNew pixels 璁剧疆瑙嗛鎾斁鍣ㄧ殑楂樺害銆
loopNew loop 濡傛灉鍑虹幇璇ュ睘鎬э紝鍒欏綋濯掍粙鏂囦欢瀹屾垚鎾斁鍚庡啀娆″紑濮嬫挱鏀俱
mutedNew muted 濡傛灉鍑虹幇璇ュ睘鎬э紝瑙嗛鐨勯煶棰戣緭鍑轰负闈欓煶銆
posterNew URL 瑙勫畾瑙嗛姝e湪涓嬭浇鏃舵樉绀虹殑鍥惧儚锛岀洿鍒扮敤鎴风偣鍑绘挱鏀炬寜閽
preloadNew auto
metadata
none
好运快三有规律吗—官方网址22270.COM濡傛灉鍑虹幇璇ュ睘鎬э紝鍒欒棰戝湪椤甸潰鍔犺浇鏃惰繘琛屽姞杞斤紝骞堕澶囨挱鏀俱好运快三有规律吗—官方网址22270.COM濡傛灉浣跨敤 "autoplay"锛屽垯蹇界暐璇ュ睘鎬с
srcNew URL 瑕佹挱鏀剧殑瑙嗛鐨 URL銆
widthNew pixels 好运快三有规律吗—官方网址22270.COM璁剧疆瑙嗛鎾斁鍣ㄧ殑瀹藉害銆

鍏ㄥ眬灞炴

<video> 鏍囩鏀寔 HTML 鐨勫叏灞灞炴


浜嬩欢灞炴

<video> 鏍囩鏀寔 HTML 鐨勪簨浠跺睘鎬