How to solve the problem that MP4 videos cannot be played using the video tag in H5 web pages

little bottle
Release: 2019-04-08 14:14:50
Original
23040 people have browsed it

Why the recorded MP4 video can be played locally but cannot be played normally using the video multimedia playback tag of html5, with only a progress bar and no image displayed? In fact, it is a video encoding problem. Although the formats are all MP4, HTML only supports the H.264 encoding format. I have no choice but to re-convert the encoding.

In order to avoid everyone encountering the same problem, I will give you some knowledge about HTML5 about thetag. :When we use the html4 protocol to build a website, if we want to play a video on the web page, we need to use flash to play it, or use an embedded page to achieve it. For html5, these two methods are very inconvenient. Because a coolappeared. The function of this tag is to allow multimedia files to be played easily on web pages. Playing a video in

html requires only one tag:

  1. ##
Although there is a lot less code, the functions are very sound. This is one of the highlights of html5!

About the video formats and encodings supported by the
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Articles by Author
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!