Html 5 video tag and codecs problem

时间秒杀一切 提交于 2019-12-05 07:53:43

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.

Yann Ramin

<source is not the top level HTML5 video tag, which is named <video>. You can find out more from this tutorial. Are you using <source> inside of <video>?

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!