MediaPlayerConfig class

Inheritance
  • Object
  • NativeClass
  • MediaPlayerConfig

Constructors

MediaPlayerConfig([NativeClassOptions? options])

Properties

$resource → NativeResource
no setterinherited
autoPlay FutureOr<boolean?>
@brief Play the audio automatically. If not, call start{@link #IMediaPlayer#start} to play the audio.
getter/setter pair
callbackOnProgressInterval FutureOr<long?>
@brief Set the interval of the periodic callback onMediaPlayerPlayingProgress{@link #IMediaPlayerEventHandler#onMediaPlayerPlayingProgress} during audio mixing in ms.
- interval > 0: The callback is enabled. The actual interval is 10*(mod(10)+1). - interval <= 0: The callback is disabled.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
playCount FutureOr<int?>
@brief Mix playback times
- Play_count < = 0: Infinite loop - Play_count == 1: Play once (default) - Play_count > 1: Play play_count times
getter/setter pair
ready Future<void>
Whether the instance is initialized
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
startPos FutureOr<int?>
@brief The starting position in ms. 0 by default.
getter/setter pair
syncProgressToRecordFrame FutureOr<boolean?>
@brief Attach the process information of local audio file mixing to the captured audio data. Enable the function to enhance the synchronicity of the remote audio mixing.
- The function is effective when mixing a single audio file. - Use true for enabling the function and false for disable the function. The default is false.
getter/setter pair
type FutureOr<AudioMixingType?>
@brief For mixing playback types. See AudioMixingType{@link #AudioMixingType}
getter/setter pair

Methods

destroy() → void
inherited
nativeCall<T>(String method, [List? args, NativeMethodMeta? meta]) Future<T>
Call instance method
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
sendInstanceGet<T>(String property) Future<T>
Get instance property
inherited
sendInstancePropertiesGet(dynamic nativeClass) Future<Map<String, dynamic>>
Get instance properties
inherited
sendInstanceSet(String property, dynamic value) Future<void>
Set instance property
inherited
toString() String
A string representation of this object.
inherited
updateResource(NativeResource resource) → void
inherited

Operators

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

Static Properties

codegen_$namespace → dynamic
no setter