Html 5 video tag and codecs problem
source link: https://www.codesd.com/item/html-5-video-tag-and-codecs-problem.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Html 5 video tag and codecs problem
I have a mkv file. It's video codec is avc and audio codec is ac3.
How can i put it into a html5 video tag?
I use the
<source src="01.mkv" type="video/x-matroska" codecs="a_ac3, avc">
but in safari 5 or chorome4 it doesn't works.
Your <source>
tag is malformed. You need to put the codec information inside the value of the type
attribute instead, eg:
<source src="01.mkv" type='video/x-matroska; codecs="a_ac3, avc"'>
The type
attribute contains a full MIME specification, and codecs
is an optional parameter for some MIME types. There is no separate codecs
attribute on the <video>
tag.
Related Articles
Can an HTML 5 video tag have multiple MP4 sources with different codecs?
Dynamic Video Tag and Knockout JS
The HTML 5 video tag does not work from Tomcat (edited)
The HTML 5 video tag does not work for any browser
The HTML 5 video tag does not work in Firefox
Using native javascript to select HTML & amp; SCRIPT tags and their data attributes?
html & amp; css efficiency and performance problem
OpenCV video capture and fps problem
HTML element in memory and display problem after inserting it in DOM
Why does an HTML video tag show the video upside down only in Mozilla Firefox?
Cycling through HTMl5 video tags using the timeupdate and loadedmetadata events
ASP.net with HTML5 and iPad video tag
Custom file format and codec?
Many video tags on page in single page application (angular) make the page frozen
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK