ZegoAudioEffectPlayer class abstract

Constructors

ZegoAudioEffectPlayer()

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

getCurrentProgress(int audioEffectID) Future<int>
Get current playback progress.
getIndex() int
Get audio effect player index.
getTotalDuration(int audioEffectID) Future<int>
Get the total duration of the specified audio effect resource.
loadResource(int audioEffectID, String path) Future<ZegoAudioEffectPlayerLoadResourceResult>
Load audio effect resource.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pause(int audioEffectID) Future<void>
Pause playing audio effect.
pauseAll() Future<void>
Pause playing all audio effect.
resume(int audioEffectID) Future<void>
Resume playing audio effect.
resumeAll() Future<void>
Resume playing all audio effect.
seekTo(int audioEffectID, int millisecond) Future<ZegoAudioEffectPlayerSeekToResult>
Set the specified playback progress.
setPlaySpeed(int audioEffectID, double speed) Future<void>
Set the playback speed for a given audio effect. Both the local play speed and the publish speed are set. (separate settings are not supported).
setPlayVolume(int audioEffectID, int volume) Future<void>
Set local play volume for a single audio effect.
setPlayVolumeAll(int volume) Future<void>
Set local play volume for all audio effect.
setPublishVolume(int audioEffectID, int volume) Future<void>
Set publish volume for a single audio effect.
setPublishVolumeAll(int volume) Future<void>
Set publish volume for all audio effect.
setVolume(int audioEffectID, int volume) Future<void>
Set volume for a single audio effect. Both the local play volume and the publish volume are set.
setVolumeAll(int volume) Future<void>
Set volume for all audio effect. Both the local play volume and the publish volume are set.
start(int audioEffectID, {String? path, ZegoAudioEffectPlayConfig? config}) Future<void>
Start playing audio effect.
stop(int audioEffectID) Future<void>
Stop playing audio effect.
stopAll() Future<void>
Stop playing all audio effect.
toString() String
A string representation of this object.
inherited
unloadResource(int audioEffectID) Future<void>
Unload audio effect resource.
updatePosition(int audioEffectID, Float32List position) Future<void>
Update the position of the audio effect player (audio source).

Operators

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