From 33058f2b292b3a581333bdfb21b8f671898c5060 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:40:17 -0500 Subject: initial commit --- files/ja/web/api/rtcsessiondescriptioncallback/index.html | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 files/ja/web/api/rtcsessiondescriptioncallback/index.html (limited to 'files/ja/web/api/rtcsessiondescriptioncallback/index.html') diff --git a/files/ja/web/api/rtcsessiondescriptioncallback/index.html b/files/ja/web/api/rtcsessiondescriptioncallback/index.html new file mode 100644 index 0000000000..e04b9e9bd2 --- /dev/null +++ b/files/ja/web/api/rtcsessiondescriptioncallback/index.html @@ -0,0 +1,15 @@ +--- +title: RTCSessionDescriptionCallback +slug: Web/API/RTCSessionDescriptionCallback +translation_of: Web/API/RTCSessionDescriptionCallback +--- +

{{APIRef("WebRTC")}}{{SeeCompatTable}}RTCSessionDescriptionCallbackはオファーまたはアンサーの作成が要求された時に RTCPeerConnection オブジェクトによって実行されます。 

+ +

+ +
var pc = new RTCPeerConnection();
+var descriptionCallback = function(offer) {
+  pc.setLocalDescription(offer);
+}
+pc.createOffer(descriptionCallback);
+
-- cgit v1.2.3-54-g00ecf