google / google/ExoPlayer

Add original emsg properties to the MetadataOutput.onMetadata callback or as properties into the eventMessage object

Open
#7,679 4 comments 0 reactions 1 assignee Claimed by @icbaker View on GitHub
enhancement
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:

![image](https://user-images.githubusercontent.com/1038513/88536517-3b390900-d00c-11ea-9f2e-43ff7b4174e1.png)

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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.