-
Notifications
You must be signed in to change notification settings - Fork 6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add convenience API for querying static metadata #7266
Comments
The The So you should be able to retrieve the |
Thank you for the clarification. I'm working on a solution that uses |
@icbaker - We should probably make it easier for developers to know when static metadata has changed, and to retrieve the current static metadata from the player without having to trawl through all the |
Issue:#7266 PiperOrigin-RevId: 335416280
Searched documentation and issues
I've been looking at the issues in this repository regarding Icy metadata and Shoutcast streams, especially:
Question
I want to add metadata events to the just_audio Flutter plugin, which uses ExoPlayer in the Android version.
I'm trying to read the IcyInfo and IcyHeaders of a Shoutcast stream. Reading the aforementioned resources, plus this Medium article, I was under the impression that I could retrieve them by adding a MetadataOutput to the current player, like this:
However, I'm receiving events that contain only IcyInfo metadata entries, and I can't figure out why. I've had the same result with several different streams. Am I doing something wrong during initialization?
I'm using ExoPlayer 2.11.4.
Link to test content
I've had the same result with all the Shoutcast streams I've tried. Some examples are:
The full code I'm using for the Flutter plugin is here: https://github.com/Jei/just_audio/blob/icy-metadata/android/src/main/java/com/ryanheise/just_audio/AudioPlayer.java
I'm currently developing a Flutter app on top of it: https://github.com/Jei/tormentedplayer/tree/develop
The text was updated successfully, but these errors were encountered: