ryanheise / audio_service

Flutter plugin to play audio in the background while the screen is off.
791 stars 471 forks source link

StreamSubscription does not listen if url is not mp3 #873

Open alexaung opened 2 years ago

alexaung commented 2 years ago

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

ryanheise commented 2 years ago

I don't understand the feature request. Your issue title looks more like a bug report. Can you clarify which it is? Feature request or bug?