HTML5 read video metadata of mp4

前端 未结 2 1642
旧巷少年郎
旧巷少年郎 2021-02-19 09:19

Using HTML5 I am trying to get the attribute (ie rotation), located in the header of a mp4 (I play it using a video tag), to do this I am trying to get the bytes that make up th

2条回答
  •  刺人心
    刺人心 (楼主)
    2021-02-19 09:32

    I do not think you can extract such detailed metadata from a video, using HTML5 and its video-tag. The only things you can extract (video length, video tracks, etc.) are listed here:

    http://www.w3schools.com/tags/ref_av_dom.asp

    Of course, there might be special additional methods available in some browsers, but there is no "general" approach - you would need more than the existing methods of HTML5.

提交回复
热议问题