flutter_radio_player_android 4.2.0
flutter_radio_player_android: ^4.2.0 copied to clipboard
Android implementation of flutter_radio_player.
4.2.0 #
- Added the state snapshot (
state,stateStream). The three legacy streams are now derived from it: single shared streams that support several listeners, no longer emit identical consecutive values and do not replay. dispose()followed byinitialize()works repeatedly. The controller and the service are created byinitialize()instead of at engine attach.dispose()stops the service and the notification and the state returns to idle. Adispose()issued whileinitialize()is still connecting completes quietly.play(),pause(),playOrPause(),nextSource(),previousSource()andjumpToSourceAtIndex()beforeinitialize()or afterdispose()are ignored and log a warning.setVolume()is also ignored and logged there; it never took effect before, asinitialize()resets the volume to 0.5.initialize([])clears the playlist and stops playback, so the state is idle. Before, it paused and kept the previous list.- Playback errors are reported in the state (
networkfor connection failures and timeouts,unknownotherwise). A user-initiatedplay()orplayOrPause()after a failure re-prepares the current source. - The service builds the notification's content intent from the app's launcher intent, which avoids a possible crash when it starts without an Activity. Tapping the notification opens the launcher activity (before, the Activity that was attached at the time).
- Pauses when headphones are unplugged.
- Requires
flutter_radio_player_platform_interface^4.2.0.
4.1.0 #
- Converted all HostApi methods to Pigeon
@async; replaced ad-hoc pending-ops queue with the native Media3ListenableFuture<MediaController>readiness gate, dispatched onContextCompat.getMainExecutor. Errors surface asFlutterErrorto Dart instead of being swallowed. - Removed incorrect
Player.STATE_READY -> falseemission that could reportisPlaying = falseduring a buffer stall mid-playback. VolumeInfo.isMutednow honestly reflectsvolume == 0.- Artwork URL detection now checks
http:///https://prefix instead of substringcontains("http"). FlutterLoaderlookup now goes throughFlutterInjector.instance()singleton rather than reinitializing per asset load.dispose()now also stops thePlaybackService.
4.0.2 #
- Bumped Media3 to 1.10.0 (exoplayer, exoplayer-hls, session, common)
- Bumped compileSdk to 36
- Bumped Mockito test dependency to 5.23.0
- Aligned example app Kotlin version to 2.1.20
4.0.1 #
- Dependency updates
4.0.0 #
- Initial release as federated package