-
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
Get Current Song Metadata on Shoutcast stream #466
Comments
This is not currently supported. |
Thanks for fast answer and for added to enhancement label. I think it's a good feature for radio stream apps. See: https://github.com/vbartacek/aacdecoder-android/blob/master/decoder/src/com/spoledge/aacdecoder/IcyInputStream.java I'm just a newbie, but i'm going to fork ExoPlayer and try that. |
Hi @ericcbm , It seems doable to re-used the IcyInputStream you mentioned. This update will dump the meta into log. But need to replace the IcyInputStream and PlayerCallback in your version |
A reference site for SmackKu: shoutcast Metadata metadata. |
So it is not possible to obtain MetaData for shoutcast stream? |
yes it is possible to get metadata using aacdecoder-android but you will need to change the android Mediaplayer with the aac one, it worked for me |
The patch @Ood-Tsen provided works with AAC and it also works great with MP3 streams (-> my use case). The patch is based on ExoPlayer v1 though. I tried to adapt the code to work with ExoPlayer v2, but I was not able to get it working. Anyway. I would really like to see an official support for Shoutcast. Therefore: 👍 from me for this issue. PS. Had anyone here success with implementing the patch in an v2 based app? |
UPDATE: Shoutcast extraction seems to work for me in a v2 based app. I had to create a I was able to use The only problem with this: I had to make changes to the I hope that in the future there is a better solution for this
It would be great not to have to mess with the core code of ExoPlayer. |
@y20k I had the similar task to extract Shoutcast metadata in my project, below is how I achieved it. Created
Below is how I Implemented IcyDataSource
|
Thank you for posting your solution. That is way more elegant. No need to edit/customize Exoplayer's |
Glad it helped @y20k |
If that is helpful to anyone... Here is the IcyDataSourceFactory that I use with the IcyDataSource provided by @asheeshs. It is a slight modification of DefaultDataSourceFactory. It can be used as a replacement for DefaultDataSourceFactory when preparing the player as described in the ExoPlayer Developer guide. You would need to create a PlayerCallback that reacts to metadata changes to make this work.
|
Now tracked by #3735. |
I'm trying to get current song metadata on a shoutcats stream.
http://mobil.metal-only.de:8000/
I've tryed with TextListner and Id3MetadataListener with no success. :(
Some advice?
There is my ExtractorRendererBuilder:
The text was updated successfully, but these errors were encountered: