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
-
nowPlaying(
FlutterSoundPlayerCallback callback, {Duration? progress, Duration? duration, Map< String, dynamic> ? track, bool? canPause, bool? canSkipForward, bool? canSkipBackward, bool? defaultPauseResume}) → Future<int> -
override
-
openPlayer(
FlutterSoundPlayerCallback callback, {required Level logLevel, AudioFocus? focus, SessionCategory? category, SessionMode? mode, int? audioFlags, AudioDevice? device, bool? withUI}) → 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
-
setAudioFocus(
FlutterSoundPlayerCallback callback, {AudioFocus? focus, SessionCategory? category, SessionMode? mode, int? audioFlags, AudioDevice? device}) → Future< int> -
override
-
setLogLeve(
FlutterSoundPlayerCallback callback, Level loglevel) → Future< void> ? -
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
-
setUIProgressBar(
FlutterSoundPlayerCallback callback, {Duration? duration, Duration? progress}) → Future< int> -
override
-
setVolume(
FlutterSoundPlayerCallback callback, {double? volume}) → Future< int> -
override
-
startPlayer(
FlutterSoundPlayerCallback callback, {Codec? codec, Uint8List? fromDataBuffer, String? fromURI, int? numChannels, int? sampleRate}) → Future< int> -
override
-
startPlayerFromMic(
FlutterSoundPlayerCallback callback, {int? numChannels, int? sampleRate}) → Future< int> -
override
-
startPlayerFromTrack(
FlutterSoundPlayerCallback callback, {Duration? progress, Duration? duration, Map< String, dynamic> ? track, bool? canPause, bool? canSkipForward, bool? canSkipBackward, bool? defaultPauseResume, bool? removeUIWhenStopped}) → 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
.