Show / Hide Table of Contents

Interface ITXMusicPlayObserver

Background music callbacks

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

Methods

onComplete(Int32, Int32)

Background music ended

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

Music ID

System.Int32 errCode

Error code

onPlayProgress(Int32, Int64, Int64)

Playback progress of background music

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

Music ID

System.Int64 curPtsMS

Current playback time

System.Int64 durationMS

Total music length

onStart(Int32, Int32)

Background music started

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

Music ID

System.Int32 errCode

Error code

In This Article
Back to top Generated by DocFX