blob: d0ed1ab2f6050bcf271cca465f47997a517ebf70 (
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
64
65
66
67
68
69
|
---
title: RTCSessionDescription.sdp
slug: Web/API/RTCSessionDescription/sdp
translation_of: Web/API/RTCSessionDescription/sdp
---
<p>{{APIRef("WebRTC")}}{{SeeCompatTable}}</p>
<p>읽기 속성인 <strong><code>RTCSessionDescription.sdp</code></strong> 는 세션에 대해 설명해주는 {{Glossary("SDP")}}를 가지고 있는 {{domxref("DOMString")}}입니다. </p>
<h2 id="Syntax">Syntax</h2>
<pre class="syntaxbox">var <em>value</em> = <em>sessionDescription</em>.sdp;
<em>sessionDescription</em>.sdp = value;
</pre>
<h3 id="값">값</h3>
<p>아래와 같이 SDP 메세지를 포함하고 있는 {{domxref("DOMString")}}값 입니다. </p>
<pre> v=0
o=alice 2890844526 2890844526 IN IP4 host.anywhere.com
s=
c=IN IP4 host.anywhere.com
t=0 0
m=audio 49170 RTP/AVP 0
a=rtpmap:0 PCMU/8000
m=video 51372 RTP/AVP 31
a=rtpmap:31 H261/90000
m=video 53000 RTP/AVP 32
a=rtpmap:32 MPV/90000</pre>
<h2 id="예시">예시</h2>
<pre class="brush: js">// The remote description has been set previously on pc, an RTCPeerConnection
alert(pc.remoteDescription.sdp);
</pre>
<h2 id="Specifications" name="Specifications">명세</h2>
<table class="standard-table" style="height: 49px; width: 1000px;">
<thead>
<tr>
<th scope="col">명세</th>
<th scope="col">상태</th>
<th scope="col">코멘트</th>
</tr>
</thead>
<tbody>
<tr>
<td>{{ SpecName('WebRTC 1.0', '#widl-RTCSessionDescription-sdp', 'RTCSessionDescription.sdp') }}</td>
<td>{{ Spec2('WebRTC 1.0') }}</td>
<td>Initial specification.</td>
</tr>
</tbody>
</table>
<h2 id="브라우저_호환성">브라우저 호환성</h2>
<p>{{Compat("api.RTCSessionDescription.sdp")}}</p>
<h2 id="참조">참조</h2>
<ul>
<li><a href="/en-US/docs/Web/Guide/API/WebRTC">WebRTC</a></li>
<li>The standard for using SDP in an offer/answer protocol {{rfc("3264")}}.</li>
</ul>
|