MethodChannelFlutterF2fSound class

An implementation of FlutterF2fSoundPlatform that uses method channels and event channels.

Inheritance

Properties

eventChannel → EventChannel
The event channel used to receive real-time audio data streams.
final
hashCode → int
The hash code for this object.
no setterinherited
methodChannel → MethodChannel
The method channel used to interact with the native platform for method calls.
final
playbackEventChannel → EventChannel
The event channel used to receive audio playback stream.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
systemSoundEventChannel → EventChannel
The event channel used to receive system sound capture stream.
final

Methods

getCurrentPosition() → Future<double>
Get the current playback position in seconds
override
getDuration(String path) → Future<double>
Get the duration of the audio file in seconds
override
getPlatformVersion() → Future<String?>
override
isPlaying() → Future<bool>
Check if audio is currently playing
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pause() → Future<void>
Pause the currently playing audio
override
play({required String path, double volume = 1.0, bool loop = false}) → Future<void>
Play audio from the given path
override
resume() → Future<void>
Resume playback of paused audio
override
setVolume(double volume) → Future<void>
Set the volume of the currently playing audio (0.0 to 1.0)
override
startPlaybackStream(String path) → Stream<List<int>>
override
startRecording() → Stream<List<int>>
override
startSystemSoundCapture() → Stream<List<int>>
override
stop() → Future<void>
Stop the currently playing audio
override
stopRecording() → Future<void>
override
toString() → String
A string representation of this object.
inherited

Operators

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