Xiaobian to everyone how to solve the problem of the h5 page in the H5 page, the problem that cannot be played with MP4 video, I believe that most people don’t know much, so share this article to everyone, I hope everyone is reading this article. There is a big gain after the article, let us let us know together!
In order to avoid everyone who meets the same problem, I will popularize HTML5 about
About the video format and encoding supported by the
MP4 = MPEG 4 file Using the H264 video codec and AAC audio codec
Webm = webm file uses VP8 video codec and Vorbis audio codec
- OGG = OGG file uses theora video codec And Vorbis audio codec
Through the above information we will find only H364 encoded MP4 video (MPEG-LA), VP8 encoded webm format video (Google Company) Video (ITOUCH development) with the OGG format encoded, can support the
What should I do if the browser does not support a video tag?
We can write the code this:
tab of HTML5.
For example, IE browser also has an old version of the browser to support HTML5 is not very good, how do users use these browsers to open our web pages?
This will prompt in a browser that does not support HTML5, “Your browser does not support the video!”!
Extended parameters for VIDEO tags Description:
- Video elements allow multiple Source elements. Source elements can link different video files. The browser will use the first recognizable format so that we can prepare more of the video of several different formats.
Your browser does not support this video format.
- Controls: Appence This property means displaying controls to the user, such as play buttons, etc., usage: controls = “controls”
loop: Automatic replay, usage: loop = “loop”
preload: video Load and prepare playback when loading, usage: preload = “auto” – load the entire video after the page is loaded; preload = “meta” – loaded on the pageLater only load metadata; preload = “none” – does not load video after the page is loaded. Note: If AutoPlay is used, it is ignored preload
SRC: how to play video URL
AutoPlay: This property means that the video will automatically play automatically after ready, usage: AutoPlay = “AutoPlay”
HEIGHT: Setting the height Width: Set the width
How to solve the H5 web page in VIDEO Label can not play all the contents of the MP4 video, thank you for reading! I believe everyone has a certain understanding, I hope to share the content of everyone, if you want to learn more knowledge, please pay attention to Tumi Yun Industry News Channel!