MethodChannelTauPlayer class
An implementation of FlutterSoundPlayerPlatform
that uses method channels.
- Inheritance
-
- Object
- PlatformInterface
- TauPlayerPlatform
- MethodChannelTauPlayer
Constructors
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
-
channelMethodCallHandler(
MethodCall call) → Future? -
closePlayer(
TauPlayerCallback callback) → Future< int> -
override
-
closeSession(
TauPlayerCallback aSession) → void -
inherited
-
feed(
TauPlayerCallback callback, {Uint8List? data}) → Future< int> -
override
-
findSession(
TauPlayerCallback aSession) → int -
inherited
-
getPlayerState(
TauPlayerCallback callback) → Future< int> -
override
-
getProgress(
TauPlayerCallback callback) → Future< Map< String, Duration> > -
override
-
getResourcePath(
TauPlayerCallback callback) → Future< String> -
override
-
getSession(
int slotno) → TauPlayerCallback -
inherited
-
invokeMethod(
TauPlayerCallback callback, String methodName, Map< String, dynamic> call) → Future<int> -
invokeMethodBool(
TauPlayerCallback callback, String methodName, Map< String, dynamic> call) → Future<bool> -
invokeMethodString(
TauPlayerCallback callback, String methodName, Map< String, dynamic> call) → Future<String> -
isDecoderSupported(
TauPlayerCallback callback, {Codec codec = Codec.defaultCodec}) → Future< bool> -
override
-
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> -
override
-
numberOfOpenSessions(
) → int -
inherited
-
openPlayer(
TauPlayerCallback callback, {required Level logLevel, AudioFocus? focus, SessionCategory? category, SessionMode? mode, int? audioFlags, AudioDevice? device, bool? withUI}) → Future< int> -
override
-
openSession(
TauPlayerCallback aSession) → void -
inherited
-
pausePlayer(
TauPlayerCallback callback) → Future< int> -
override
-
resetPlugin(
TauPlayerCallback callback) → Future< void> ? -
override
-
resumePlayer(
TauPlayerCallback callback) → Future< int> -
override
-
seekToPlayer(
TauPlayerCallback callback, {Duration? duration}) → Future< int> -
override
-
setAudioFocus(
TauPlayerCallback callback, {AudioFocus? focus, SessionCategory? category, SessionMode? mode, int? audioFlags, AudioDevice? device}) → Future< int> -
override
-
setCallback(
) → void -
setLogLevel(
TauPlayerCallback callback, Level logLevel) → Future< void> ? -
override
-
setSpeed(
TauPlayerCallback callback, {required double speed}) → Future< int> -
override
-
setSubscriptionDuration(
TauPlayerCallback callback, {Duration? duration}) → Future< int> -
override
-
setUIProgressBar(
TauPlayerCallback callback, {Duration? duration, Duration? progress}) → Future< int> -
override
-
setVolume(
TauPlayerCallback callback, {double? volume}) → Future< int> -
override
-
startPlayer(
TauPlayerCallback callback, {Codec? codec, Uint8List? fromDataBuffer, String? fromURI, int? numChannels, int? sampleRate}) → Future< int> -
override
-
startPlayerFromMic(
TauPlayerCallback callback, {int? numChannels, int? sampleRate}) → Future< int> -
override
-
startPlayerFromTrack(
TauPlayerCallback callback, {Duration? progress, Duration? duration, Map< String, dynamic> ? track, bool? canPause, bool? canSkipForward, bool? canSkipBackward, bool? defaultPauseResume, bool? removeUIWhenStopped}) → Future<int> -
override
-
stopPlayer(
TauPlayerCallback callback) → Future< int> -
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited