diff options
| author | Ryan Johnson <rjohnson@mozilla.com> | 2021-05-28 12:36:36 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-05-28 12:36:36 -0700 |
| commit | 05a7219ba9605649cb6daa281e26209eaa73adf0 (patch) | |
| tree | 63c9443b214d52257ff4ef5546f9e70c8b7365cd /files/zh-cn/web/api/rtcpeerconnection/ontrack/index.html | |
| parent | 220a7d23b0755acc06146c1262aa09ba22d6e3b1 (diff) | |
| download | translated-content-05a7219ba9605649cb6daa281e26209eaa73adf0.tar.gz translated-content-05a7219ba9605649cb6daa281e26209eaa73adf0.tar.bz2 translated-content-05a7219ba9605649cb6daa281e26209eaa73adf0.zip | |
fix MacroWrongXRefError flaws for some domxref calls (#1018)
Diffstat (limited to 'files/zh-cn/web/api/rtcpeerconnection/ontrack/index.html')
| -rw-r--r-- | files/zh-cn/web/api/rtcpeerconnection/ontrack/index.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/files/zh-cn/web/api/rtcpeerconnection/ontrack/index.html b/files/zh-cn/web/api/rtcpeerconnection/ontrack/index.html index b92a83228c..db43ee6ed5 100644 --- a/files/zh-cn/web/api/rtcpeerconnection/ontrack/index.html +++ b/files/zh-cn/web/api/rtcpeerconnection/ontrack/index.html @@ -3,7 +3,7 @@ title: RTCPeerConnection.ontrack slug: Web/API/RTCPeerConnection/ontrack translation_of: Web/API/RTCPeerConnection/ontrack --- -<p>{{APIRef("WebRTC")}}{{SeeCompatTable}}<code><strong>RTCPeerConnection.ontrack</strong></code> 属性是一个 {{domxref("EventHandler")}} 此属性指定了在{{domxref("RTCPeerConnection")}}接口上触发 {{event("track")}} 事件时调用的方法。该方法接收一个{{domxref("RTCTrackEvent")}}类型的event对象,该event对象将在{{domxref("MediaStreamTrack")}}被创建时或者是关联到已被添加到接收集合的{{domxref("RTCRtpReceiver")}}对象中时被发送。</p> +<p>{{APIRef("WebRTC")}}{{SeeCompatTable}}<code><strong>RTCPeerConnection.ontrack</strong></code> 属性是一个 {{event("Event_handlers", "event handler")}} 此属性指定了在{{domxref("RTCPeerConnection")}}接口上触发 {{event("track")}} 事件时调用的方法。该方法接收一个{{domxref("RTCTrackEvent")}}类型的event对象,该event对象将在{{domxref("MediaStreamTrack")}}被创建时或者是关联到已被添加到接收集合的{{domxref("RTCRtpReceiver")}}对象中时被发送。</p> <h2 id="语法">语法</h2> |
