Reputation: 2543
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?
The motivation is that the webclient should display OSD with absolute timestamps. Without the creation time field it has no knowledge of absolute timestamps and can only display time relative to the start time.
Upvotes: 2
Views: 929
Reputation:
Unfortunately no. The browser will only read video and audio data from the MP4 file container and decode those. Other metadata such as duration is handled internally.
You could get around it by doing:
Upvotes: 2