FlutterSoundPlayerWeb class
The web implementation of FlutterSoundPlatform
.
This class implements the package:flutter_sound_player
functionality for the web.
- Inheritance
-
- Object
- PlatformInterface
- FlutterSoundPlayerPlatform
- FlutterSoundPlayerWeb
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
-
closePlayer(
FlutterSoundPlayerCallback callback) → Future< int> -
override
-
closeSession(
FlutterSoundPlayerCallback aSession) → void -
inherited
-
feed(
FlutterSoundPlayerCallback callback, {Uint8List? data}) → Future< int> -
override
-
findSession(
FlutterSoundPlayerCallback aSession) → int -
inherited
-
getPlayerState(
FlutterSoundPlayerCallback callback) → Future< int> -
override
-
getProgress(
FlutterSoundPlayerCallback callback) → Future< Map< String, Duration> > -
override
-
getResourcePath(
FlutterSoundPlayerCallback callback) → Future< String> -
override
-
getSession(
int slotno) → FlutterSoundPlayerCallback -
inherited
-
getWebSession(
FlutterSoundPlayerCallback callback) → FlutterSoundPlayer? -
isDecoderSupported(
FlutterSoundPlayerCallback callback, {required Codec codec}) → Future< bool> -
override
-
MethodChannelFlutterSoundPlayer(
) → dynamic -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
openPlayer(
FlutterSoundPlayerCallback callback, {required Level logLevel}) → Future< int> -
override
-
openSession(
FlutterSoundPlayerCallback aSession) → void -
inherited
-
pausePlayer(
FlutterSoundPlayerCallback callback) → Future< int> -
override
-
resetPlugin(
FlutterSoundPlayerCallback callback) → Future< void> ? -
override
-
resumePlayer(
FlutterSoundPlayerCallback callback) → Future< int> -
override
-
seekToPlayer(
FlutterSoundPlayerCallback callback, {Duration? duration}) → Future< int> -
override
-
setLogLevel(
FlutterSoundPlayerCallback callback, Level loglevel) → Future< void> ? -
inherited
-
setSpeed(
FlutterSoundPlayerCallback callback, {required double speed}) → Future< int> -
override
-
setSubscriptionDuration(
FlutterSoundPlayerCallback callback, {Duration? duration}) → Future< int> -
override
-
setVolume(
FlutterSoundPlayerCallback callback, {double? volume}) → Future< int> -
override
-
setVolumePan(
FlutterSoundPlayerCallback callback, {double? volume, double? pan}) → Future< int> -
override
-
startPlayer(
FlutterSoundPlayerCallback callback, {Codec? codec, Uint8List? fromDataBuffer, String? fromURI, int? numChannels, int? sampleRate, int bufferSize = 8192}) → Future< int> -
override
-
startPlayerFromMic(
FlutterSoundPlayerCallback callback, {int? numChannels, int? sampleRate, int bufferSize = 8192, bool enableVoiceProcessing = false}) → Future< int> -
override
-
stopPlayer(
FlutterSoundPlayerCallback callback) → Future< int> -
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
-
defaultExtensions
↔ List<
String> -
getter/setter pair
Static Methods
-
registerWith(
Registrar registrar) → void -
Registers this class as the default instance of
FlutterSoundPlatform
.