FlutterPcmPlayer class

A player for playing the raw PCM audio data

Constructors

FlutterPcmPlayer()

Properties

hashCode int
The hash code for this object.
no setterinherited
isInited bool
True if the player is already initialized by initialize()
no setter
isPaused bool
True if the playback is paused
no setter
isPlaying bool
True if the playback is ongoing
no setter
isStopped bool
True if the playback is stopped
no setter
playState PlayState
The play state of the player
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

feed(Uint8List data) Future<void>
Feeds the player with raw PCM data block
initialize({int nChannels = 1, int sampleRate = 16000, PCMType pcmType = PCMType.pcm16}) Future<void>
Initializes the player The nChannels should either be 1 or 2 to indicate the number of channels
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pause() Future<void>
Pauses the playback
play() Future<void>
Starts the playback
release() Future<void>
Releases the player Before the releasing the playback will be stopped
resume() Future<void>
Resumes the playback that being paused
setVolume(double volume) Future<void>
Sets the volume
stop() Future<void>
Stops the playback
toString() String
A string representation of this object.
inherited

Operators

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