FlutterF2fSoundWeb class
A web implementation of the FlutterF2fSoundPlatform of the FlutterF2fSound plugin.
Note: Web implementation uses Web Audio API to provide PCM audio data, making it more compatible with native platforms.
- Inheritance
-
- Object
- PlatformInterface
- FlutterF2fSoundPlatform
- FlutterF2fSoundWeb
Constructors
- FlutterF2fSoundWeb()
- Constructs a FlutterF2fSoundWeb
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
-
dispose(
) → void - Dispose resources
-
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?> -
Returns a String containing the version of the platform.
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> > -
Start audio playback stream
override
-
startRecording(
) → Stream< List< int> > -
Start audio recording and get a stream of recorded audio data
override
-
startSystemSoundCapture(
) → Stream< List< int> > -
Start system sound capture and get a stream of captured audio data
override
-
stop(
) → Future< void> -
Stop the currently playing audio
override
-
stopRecording(
) → Future< void> -
Stop audio recording
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
registerWith(
Registrar registrar) → void