FlutterRadioPlayer class

Wraps SwiftAudioManager (iOS) and ExoPlayer (Android) to provide seamless Internet radio experience

AudioControls are integrated in the into the plugin to provide an seamless experience WearOS and watchOS are already handled by this plugin so that you have the you will get the best of both worlds

Constructors

FlutterRadioPlayer()

Properties

frpEventStream Stream<String?>?
Returns Stream of events of the player. This includes
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addMediaSources(FRPSource frpSource) → void
Add the media sources to the player. This will enable previous and next features if you are using the list feature
getPlaybackState() Future<String>
Returns a Future of String of the players playback events
initPlayer() → void
Initialize the player for the first time. This is will init the method channels and event channels that are necessary for the player to work in a reactive manner. You Only need to call this method once.
next() → void
Plays the next song if there is any media-item in the list
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pause() → void
Pause current active media-item
play() → void
Play current active media-item
playOrPause() → void
Play or Pause the current active media-item
previous() → void
Plays the previous song if there is any media-item in the list
seekToMediaSource(int position, bool playWhenReady) → void
Seek to index of a media-item
setVolume(double volume) → void
Adjust the player volume along with the device itself
stop() → void
Stop the player. You need to re-initialize if you call this method
toString() String
A string representation of this object.
inherited
useIcyData(bool useIcyData) → void
Extract the Icy / ID3 meta data from stream

Operators

operator ==(Object other) bool
The equality operator.
inherited