RTCTrackEvent()
constructor creates and returns a new
RTCTrackEvent
object, configured to describe the track which has been added to the
RTCPeerConnection
.
In general, you won't need to use this constructor, as
RTCTrackEvent
objects are created by WebRTC and delivered to your
RTCPeerConnector
's
ontrack
event handler as appropriate.
trackEvent = new RTCTrackEvent(eventInfo);
eventInfo
RTCTrackEventInit
dictionary, providing information about the track which has been added to the
RTCPeerConnection
. This object has the following properties:
receiver
RTCRtpReceiver
which is being used to receive the track's media.
流
可选
MediaStream
objects representing each of the streams that comprise the event's corresponding track.
track
MediaStreamTrack
the event is associated with.
transceiver
RTCRtpTransceiver
与事件关联。
新的
RTCTrackEvent
describing a track which has been added to the
RTCPeerConnection
.
| 规范 | 状态 | 注释 |
|---|---|---|
|
WebRTC 1.0: Real-time Communication Between Browsers
The definition of 'RTCTrackEvent()' in that specification. |
候选推荐 | 最初的规范。 |
No compatibility data found. Please contribute data for "api.RTCTrackEvent.RTCTrackEvent" (depth: 1) to the MDN 兼容性数据存储库 .
RTCTrackEvent
RTCTrackEvent()
MediaDevices.getUserMedia()
Navigator.mediaDevices
RTCCertificate
RTCDTMFSender
RTCDTMFToneChangeEvent
RTCDataChannel
RTCDataChannelEvent
RTCDtlsTransport
RTCErrorEvent
RTCIceCandidate
RTCIceTransport
RTCPeerConnection
RTCPeerConnectionIceErrorEvent
RTCPeerConnectionIceEvent
RTCRtpReceiver
RTCRtpSender
RTCRtpTransceiver
RTCSctpTransport
RTCSessionDescription
RTCStatsEvent
RTCStatsReport