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.Since
4.1.0
Gets the data of the video frame being rendered.
You should call this method after calling play. Otherwise, the method call returns null.
An ImageData object that stores RGBA data. ImageData is a web API supported by the browser. For details, see ImageData.
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
Optional data: CheckVisibleResultPlays a remote video track on the web page.
Specifies 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.Optional config: VideoPlayerConfigSets the playback configurations, such as display mode and mirror mode. See VideoPlayerConfig. By default, the SDK enables mirror mode for a local video track.
Generated using TypeDoc
RemoteVideoTrackis the basic interface for the remote video track.You can get create a remote video track by the [AgoraRTCRemoteUser.videoTrack]videoTrack object after calling [subscribe]subscribe.