I am playing the url from mixlr radio (https://edge.mixlr.com/channel/nmtev). In my ui, I am using ValueNotifier to get current song title. So I am listening the current song change listener in following function to get the song title. If url is .mp3 extention, this function is trigger and I got the song title.
void _listenToChangesInSong() {
_audioHandler.mediaItem.listen((mediaItem) {
currentSongTitleNotifier.value = mediaItem?.title ?? '';
if (mediaItem != null) {
currentSongNotifier.value = mediaItem;
}
_updateSkipButtons();
});
}
Motivating use case(s)
I have tested with other radio streaming without .mp3 extension
Feature proposal
I am playing the url from mixlr radio (https://edge.mixlr.com/channel/nmtev). In my ui, I am using ValueNotifier to get current song title. So I am listening the current song change listener in following function to get the song title. If url is .mp3 extention, this function is trigger and I got the song title. void _listenToChangesInSong() { _audioHandler.mediaItem.listen((mediaItem) { currentSongTitleNotifier.value = mediaItem?.title ?? ''; if (mediaItem != null) { currentSongNotifier.value = mediaItem; } _updateSkipButtons(); }); }
Motivating use case(s)
I have tested with other radio streaming without .mp3 extension