aboutsummaryrefslogtreecommitdiff
path: root/files/ko/web/api/rtcpeerconnection/gettransceivers/index.html
blob: 98d79ccbc501a0c14412777e38cadf8329d4951f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
---
title: RTCPeerConnection.getTransceivers()
slug: Web/API/RTCPeerConnection/getTransceivers
translation_of: Web/API/RTCPeerConnection/getTransceivers
---
<p>{{APIRef("WebRTC")}}</p>

<p>{{domxref("RTCPeerConnection")}} 인터페이스의 <code><strong>getTransceivers()</strong></code> 메소드는 연결에서 데이터 전송 및 수신에 사용되는 {{domxref("RTCRtpTransceiver")}} 객체의 리스트를 반환합니다.</p>

<h2 id="Syntax">Syntax</h2>

<pre class="syntaxbox"><em>transceiverList</em> = RTC<em>PeerConnection</em>.getTransceivers();</pre>

<h3 id="매개변수">매개변수</h3>

<p>없음.</p>

<h3 id="반환_값">반환 값</h3>

<p><code>RTCPeerConnection</code>에 대한 모든 미디어의 전송/수신을 관리하는 트랜시버를 나타내는 {{domxref("RTCRtpTransceiver")}} 객체의 배열입니다. 리스트의 순서는 트랜시버가 연결에 추가된 순서대로 정렬되어있습니다.</p>

<h2 id="예시">예시</h2>

<p>아래 코드는 <code>RTCPeerConnection</code>와 연관된 모든 트랜시버를 중지시킵니다.</p>

<pre class="brush: js">pc.getTransceivers.forEach(transceiver =&gt; {
  transceiver.stop();
});
</pre>

<h2 id="설명서">설명서</h2>

<table class="standard-table">
 <tbody>
  <tr>
   <th scope="col">설명서</th>
   <th scope="col">상태</th>
   <th scope="col">코멘트</th>
  </tr>
  <tr>
   <td>{{SpecName("WebRTC 1.0", "#dom-rtcpeerconnection-gettransceivers", "RTCPeerConnection.getTransceivers()")}}</td>
   <td>{{Spec2("WebRTC 1.0")}}</td>
   <td></td>
  </tr>
 </tbody>
</table>

<h2 id="브라우저_호환성">브라우저 호환성</h2>

<div>


<p>{{Compat("api.RTCPeerConnection.getTransceivers")}}</p>
</div>

<h2 id="참조">참조</h2>

<ul>
 <li><a href="/en-US/docs/Web/API/WebRTC_API">WebRTC API</a></li>
 <li><a href="/en-US/docs/Web/API/WebRTC_API/Signaling_and_video_calling">Signaling and video calling</a></li>
 <li>{{domxref("RTCPeerConnection.addTransceiver()")}}</li>
 <li>{{jsxref("Array.forEach()")}}</li>
</ul>