[英]Obtaining MP4 Creation Time from HTML5 video
Is there a way, in javascript, to obtain the creation time (a sub-field of the moov atom of an MP4 file) of a currently playing mp4 file in a video element?有没有办法在javascript中获取视频元素中当前播放的mp4文件的创建时间(MP4文件的moov原子的子字段)?
The motivation is that the webclient should display OSD with absolute timestamps.动机是 webclient 应该显示带有绝对时间戳的 OSD。 Without the creation time field it has no knowledge of absolute timestamps and can only display time relative to the start time.
如果没有创建时间字段,它不知道绝对时间戳,只能显示相对于开始时间的时间。
Unfortunately no.抱歉不行。 The browser will only read video and audio data from the MP4 file container and decode those.
浏览器只会从 MP4 文件容器中读取视频和音频数据并对其进行解码。 Other metadata such as duration is handled internally.
其他元数据(例如持续时间)在内部处理。
You could get around it by doing:您可以通过执行以下操作来解决它:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.