blob: 2fa7822559cf47542d7fdcefb41cb8be419931ce (
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
|
---
title: RTCPeerConnection()
slug: Web/API/RTCPeerConnection/RTCPeerConnection
translation_of: Web/API/RTCPeerConnection/RTCPeerConnection
---
<div>{{APIRef("WebRTC")}}</div>
<p><span class="seoSummary"><strong><code>RTCPeerConnection()</code></strong> 생성자는 로컬 기기와 원격 피어 간의 연결을 나타내는 {{domxref("RTCPeerConnection")}} 객체를 새로 만들어 반환합니다.</span></p>
<h2 id="문법">문법</h2>
<pre class="syntaxbox">pc = new RTCPeerConnection([<em>configuration</em>]);</pre>
<h3 class="syntaxbox" id="매개변수">매개변수</h3>
<dl>
<dt><code>configuration</code> {{optional_inline}}</dt>
<dd><a href="#RTCConfiguration_dictionary"><code>RTCConfiguration</code> dictionary</a>는 신규 연결을 설정하는 옵션들을 제공합니다.</dd>
</dl>
<h3 id="RTCConfiguration_dictionary">RTCConfiguration dictionary</h3>
<p>{{page("/ko/docs/Web/API/RTCConfiguration", "속성")}}</p>
<h3 id="반환_값">반환 값</h3>
<p><code>configuration</code>이 지정된 경우 그에 맞게 구성한, 그렇지 않은 경우 기본값 구성을 이용한 {{domxref("RTCPeerConnection")}} 객체입니다.</p>
<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', '#widl-ctor-RTCPeerConnection--RTCConfiguration-configuration', 'RTCPeerConnection()')}}</td>
<td>{{Spec2('WebRTC 1.0')}}</td>
<td>초기 선언</td>
</tr>
</tbody>
</table>
<h2 id="브라우저_호환성">브라우저 호환성</h2>
<p>{{Compat("api.RTCPeerConnection.RTCPeerConnection")}}</p>
<h2 id="참고">참고</h2>
<ul>
<li><a href="/en-US/docs/Web/API/WebRTC_API/Signaling_and_video_calling">Signaling and video calling</a></li>
<li><a href="/en-US/docs/Web/API/WebRTC_API/Architecture">WebRTC architecture overview</a></li>
<li><a href="/en-US/docs/Web/API/WebRTC_API/Session_lifetime">Lifetime of a WebRTC session</a></li>
<li>{{domxref("RTCPeerConnection")}}</li>
</ul>
|