Add original emsg properties to the MetadataOutput.onMetadata callback or as properties into the eventMessage object
- Dominant language
- Java
- Stars
- 21.9k
- Forks
- 6k
- PR merge metrics
- No merged PRs in 30d
Description
We're trying implementing a feature into our player where I need to get the **original presentation time** or **presentation time delta & sampleTimeUs** (https://aomediacodec.github.io/id3-emsg/) for these event messages.
Currently, I'm adding an analyticsListener and handling the onMetadata(eventTime: AnalyticsListener.EventTime?, metadata: Metadata?) method, but I can't find a way to get the original presentation time from the eventtime, and the metadata object doesn't contain this property neither.
I have also tried adding a MetadataOutput but here, I only get the Metadata object without any time associated.
In other players (like the mediaplayer in windows), the original emsg properties come as a dictionary in the onMetadata event:

Is there any other way to get the presentation time for emsg type 1 or the delta+salmple time for emsg type 0?
In our case, it would be also fine if I can match the metadata to the video chunk assoaciated and get the original url for that video chunk, but I haven't yet found the way to do that neither.
Thanks.
Contributor guide
Assessment
This issue has not been assessed yet.