TauPlayerPlatform class abstract
The interface that implementations of flutter_soundPlayer must implement.
Platform implementations should extend this class rather than implement it as url_launcher
does not consider newly added methods to be breaking changes. Extending this class
(using extends
) ensures that the subclass will get the default implementation, while
platform implementations that implements
this interface will be broken by newly added
TauPlayerPlatform methods.
- Inheritance
-
- Object
- PlatformInterface
- TauPlayerPlatform
- Implementers
Constructors
- TauPlayerPlatform()
- Constructs a UrlLauncherPlatform.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
closePlayer(
TauPlayerCallback callback) → Future< int> -
closeSession(
TauPlayerCallback aSession) → void -
feed(
TauPlayerCallback callback, {Uint8List? data}) → Future< int> -
findSession(
TauPlayerCallback aSession) → int -
getPlayerState(
TauPlayerCallback callback) → Future< int> -
getProgress(
TauPlayerCallback callback) → Future< Map< String, Duration> > -
getResourcePath(
TauPlayerCallback callback) → Future< String> -
getSession(
int slotno) → TauPlayerCallback -
isDecoderSupported(
TauPlayerCallback callback, {required Codec codec}) → Future< bool> -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
nowPlaying(
TauPlayerCallback callback, {Duration? progress, Duration? duration, Map< String, dynamic> ? track, bool? canPause, bool? canSkipForward, bool? canSkipBackward, bool? defaultPauseResume}) → Future<int> -
numberOfOpenSessions(
) → int -
openPlayer(
TauPlayerCallback callback, {required Level logLevel, AudioFocus? focus, SessionCategory? category, SessionMode? mode, int? audioFlags, AudioDevice? device, bool? withUI}) → Future< int> -
openSession(
TauPlayerCallback aSession) → void -
pausePlayer(
TauPlayerCallback callback) → Future< int> -
resetPlugin(
TauPlayerCallback callback) → Future< void> ? -
resumePlayer(
TauPlayerCallback callback) → Future< int> -
seekToPlayer(
TauPlayerCallback callback, {Duration? duration}) → Future< int> -
setAudioFocus(
TauPlayerCallback callback, {AudioFocus? focus, SessionCategory? category, SessionMode? mode, int? audioFlags, AudioDevice? device}) → Future< int> -
setLogLevel(
TauPlayerCallback callback, Level loglevel) → Future< void> ? -
setSpeed(
TauPlayerCallback callback, {required double speed}) → Future< int> -
setSubscriptionDuration(
TauPlayerCallback callback, {Duration? duration}) → Future< int> -
setUIProgressBar(
TauPlayerCallback callback, {Duration? duration, Duration? progress}) → Future< int> -
setVolume(
TauPlayerCallback callback, {double? volume}) → Future< int> -
startPlayer(
TauPlayerCallback callback, {Codec? codec, Uint8List? fromDataBuffer, String? fromURI, int? numChannels, int? sampleRate}) → Future< int> -
startPlayerFromMic(
TauPlayerCallback callback, {int? numChannels, int? sampleRate}) → Future< int> -
startPlayerFromTrack(
TauPlayerCallback callback, {Duration? progress, Duration? duration, Map< String, dynamic> ? track, bool? canPause, bool? canSkipForward, bool? canSkipBackward, bool? defaultPauseResume, bool? removeUIWhenStopped}) → Future<int> -
stopPlayer(
TauPlayerCallback callback) → Future< int> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- instance ↔ TauPlayerPlatform
-
The default instance of TauPlayerPlatform to use.
getter/setter pair