You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description:
I am currently working on an Android application that utilizes ExoPlayer for media playback. One of the key requirements of the project is to dynamically update the UI based on metadata changes during playback. We have an "onCue" method for Amazon IVS player for this specific requirement. I need something similar to that in ExoPlayer . I found a code snippet for doing this in ExoPlayer .
Issue:
I am seeking advice and suggestions from the community about this approach, Is there any better way for accessing metadata changes in ExoPlayer during playback?
Questions:
Are there any best practices or examples available for accessing metadata change in ExoPlayer?
Any considerations or challenges I should be aware of when implementing this feature in ExoPlayer compared to AWS IVS Player?
The approach with MetadataOutput.onMetadata seems to me to be the right way to do that if you want to receive proprietary ID3 tags (proprietary as in non-standard semantic like 'artist'). I don't know Amazon IVS, so I'm guessing they are using some kind of ID3 tags with content specific to their use case.
ExoPlayerImpl itself is using MetadataOutput.onMetadata(). It receives the in-band metadata and merges it with the MediaMetadata object of the item currently being played. That's probably also kind of the code sample that you are looking for. Check it out here.
My guess would be that you are looking for one of the Id3Frame types, probably TextInformationFrame, that you can find here. I think with such a stream and once having a break point in onMetadata you should be able to figure that out without me reading the AMazon docs. :)
Description:
I am currently working on an Android application that utilizes ExoPlayer for media playback. One of the key requirements of the project is to dynamically update the UI based on metadata changes during playback. We have an "onCue" method for Amazon IVS player for this specific requirement. I need something similar to that in ExoPlayer . I found a code snippet for doing this in ExoPlayer .
Issue:
I am seeking advice and suggestions from the community about this approach, Is there any better way for accessing metadata changes in ExoPlayer during playback?
Questions:
Reference:
Embedding Metadata in Amazon IVS Player: https://docs.aws.amazon.com/ivs/latest/LowLatencyUserGuide/metadata.html
Additional Context:
Android version: Android SDK 21 or above
Any relevant code snippets or resources would be greatly appreciated.
The text was updated successfully, but these errors were encountered: