aboutsummaryrefslogtreecommitdiff
path: root/files/ja/web/api/rtcsessiondescriptioncallback/index.html
blob: e04b9e9bd21633f82ba13dccbd145fed9d0243ff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
---
title: RTCSessionDescriptionCallback
slug: Web/API/RTCSessionDescriptionCallback
translation_of: Web/API/RTCSessionDescriptionCallback
---
<p>{{APIRef("WebRTC")}}{{SeeCompatTable}}RTCSessionDescriptionCallbackはオファーまたはアンサーの作成が要求された時に <a href="/en-US/docs/">RTCPeerConnection</a> オブジェクトによって実行されます。 </p>

<h3 id="例"></h3>

<pre>var pc = new RTCPeerConnection();
var descriptionCallback = function(offer) {
  pc.setLocalDescription(offer);
}
pc.createOffer(descriptionCallback);
</pre>