AudioMusicParam class

音乐和语音设置 API 的参数

Constructors

AudioMusicParam({required String path, required int id, int loopCount = 0, bool publish = false, bool isShortFile = false, int startTimeMS = 0, int endTimeMS = -1})

Properties

endTimeMS int
字段含义:音乐播放的结束时间(毫秒)。值为 0 或 -1 表示播放持续到文件结束。
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
id int
字段含义:音乐轨道 ID
getter/setter pair
isShortFile bool
字段含义:播放的音乐文件是否为短音乐文件
getter/setter pair
loopCount int
字段含义:音乐文件循环播放的次数
getter/setter pair
path String
字段含义:音乐文件的绝对路径
getter/setter pair
publish bool
字段含义:是否将音乐轨道发送给远程用户。
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
startTimeMS int
字段含义:音乐播放的起始时间(毫秒)
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
将当前对象转换为 JSON 格式。
toString() String
A string representation of this object.
inherited

Operators

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