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. |
id | Music ID |
System. |
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. |
id | Music ID |
System. |
curPtsMS | Current playback time |
System. |
durationMS | Total music length |
onStart(Int32, Int32)
Background music started
Declaration
void onStart(int id, int errCode)
Parameters
Type | Name | Description |
---|---|---|
System. |
id | Music ID |
System. |
errCode | Error code |