Show / Hide Table of Contents

Interface ITXMusicPlayObserver

背景音乐的播放进度回调

Namespace: trtc
Assembly: cs.temp.dll.dll
Syntax
public interface ITXMusicPlayObserver

Methods

onComplete(Int32, Int32)

背景音乐已播放完毕

Declaration
void onComplete(int id, int errCode)
Parameters
Type Name Description
System.Int32 id

音乐 ID

System.Int32 errCode

错误码

onPlayProgress(Int32, Int64, Int64)

背景音乐的播放进度

Declaration
void onPlayProgress(int id, long curPtsMS, long durationMS)
Parameters
Type Name Description
System.Int32 id

音乐 ID

System.Int64 curPtsMS

当前播放音乐时长

System.Int64 durationMS

音乐文件的总时长

onStart(Int32, Int32)

背景音乐开始播放

Declaration
void onStart(int id, int errCode)
Parameters
Type Name Description
System.Int32 id

音乐 ID

System.Int32 errCode

错误码

In This Article
Back to top Generated by DocFX