MediaPlayerConfig class
Inheritance
Object
PackClass
MediaPlayerConfig
Properties
$instance
→ dynamic
no setter inherited
autoPlay
↔ bool
@brief Play the audio automatically. If not, call start{@link #IMediaPlayer#start} to play the audio.
getter/setter pair
callbackOnProgressInterval
↔ int
@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 setter inherited
playCount
↔ 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
runtimeType
→ Type
A representation of the runtime type of the object.
no setter inherited
startPos
↔ int
@brief The starting position in ms. 0 by default.
getter/setter pair
syncProgressToRecordFrame
↔ bool
@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
↔ AudioMixingType
@brief For mixing playback types. See AudioMixingType{@link #AudioMixingType}
getter/setter pair
Methods
$createInstance (List args )
→ dynamic
Factory method for creating instances
override
$destroy ()
→ void
inherited
$init (List args )
→ void
inherited
findOverrideIndices (List args , List <List <int > > indicesList )
→ List <int >
查找重载参数下标列表
@desc android 构造函数存在重载
此方法通过实际传入参数与构造函数参数列表集合的比对,来获取当前实际的需要使用的参数列表
inherited
fn2AndroidClass (Function callback , dynamic nativeClass (), String methodName )
→ dynamic
与 ts runtime 中的 fn2AndroidClass 功能一致
将 Dart 函数转换为 Android 回调类实例供 Android 侧使用
inherited
noSuchMethod (Invocation invocation )
→ dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap ()
→ Map <String , dynamic >
toString ()
→ String
A string representation of this object.
inherited
transformToPlatformConstructorArgs (List args , List <int > indices , Map <String , dynamic > typeMap , Map <String , dynamic > enumMap , Map <String , dynamic > classMap , String platformVar )
→ List
实例化参数处理
将 pack 过后的 enum / class 转成 android / ios 平台侧的 enum / class
inherited
updateInstance (dynamic instance )
→ void
inherited