Whether a media track is playing on the webpage:
true
: The media track is playing on the webpage.false
: The media track is not playing on the webpage.The type of a media track:
"audio"
: Audio track."video"
: Video track.Gets the statistics of a remote track.
DEPRECATED from v4.1.0. Use [AgoraRTCClient.getRemoteVideoStats]getRemoteVideoStats and [AgoraRTCClient.getRemoteAudioStats]getRemoteAudioStats instead.
An RemoteAudioTrackStats or RemoteVideoTrackStats object.
Listens for a specified event.
When the specified event happens, the SDK triggers the callback that you pass.
The event name.
The callback to trigger.
Occurs when the first remote audio or video frame is decoded.
IRemoteTrack
Events
Plays a media track on the webpage.
Optional
element: string | HTMLElementSpecifies a DOM element. The SDK will create a <video>
element under the specified DOM element to play the video track. You can specify a DOM element in either of following ways:
string
: Specify the ID of the DOM element.HTMLElement
: Pass a DOM object.Generated using TypeDoc
RemoteTrack
is the basic interface for remote tracks, providing public methods for [RemoteAudioTrack]IRemoteAudioTrack and [RemoteVideoTrack]IRemoteVideoTrack.