RTCKTVPlayer class abstract

KTV 播放器接口类

Constructors

RTCKTVPlayer()

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

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pauseMusic(String musicId) Future<void>
暂停播放歌曲
playMusic(String musicId, {required AudioTrackType trackType, required AudioPlayType playType}) Future<void>
播放歌曲
resumeMusic(String musicId) Future<void>
继续播放歌曲
seekMusic(String musicId, {required int position}) Future<void>
设置音乐文件的起始播放位置
setMusicPitch(String musicId, {required int pitch}) Future<void>
对播放中的音乐设置升降调信息
setMusicVolume(String musicId, {required int volume}) Future<void>
设置歌曲播放音量,只能在开始播放后进行设置
setPlayerEventHandler(RTCKTVPlayerEventHandler? eventHandler) → void
设置 KTV 播放器进度及状态回调类
stopMusic(String musicId) Future<void>
停止播放歌曲。
switchAudioTrackType(String musicId) Future<void>
切换歌曲原唱伴唱
toString() String
A string representation of this object.
inherited

Operators

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