OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * | 7 * |
8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 17 matching lines...) Expand all Loading... |
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
29 */ | 29 */ |
30 | 30 |
31 [ | 31 [ |
32 GarbageCollected, | 32 GarbageCollected, |
33 ActiveDOMObject, | 33 ActiveDOMObject, |
34 Constructor(Dictionary rtcConfiguration, optional Dictionary mediaConstraint
s), | 34 Constructor(Dictionary rtcConfiguration, optional Dictionary mediaConstraint
s), |
35 ConstructorCallWith=ExecutionContext, | 35 ConstructorCallWith=ExecutionContext, |
36 NoInterfaceObject, | 36 NoInterfaceObject, |
37 RaisesException=Constructor, | 37 RaisesException=Constructor, |
| 38 SetWrapperReferenceTo(RTCSessionDescription localDescription, |
| 39 RTCSessionDescription remoteDescription) |
38 ] interface RTCPeerConnection : EventTarget { | 40 ] interface RTCPeerConnection : EventTarget { |
39 [RaisesException] void createOffer(RTCSessionDescriptionCallback successCall
back, [Default=Undefined] optional RTCErrorCallback failureCallback, optional Di
ctionary rtcOfferOptions); | 41 [RaisesException] void createOffer(RTCSessionDescriptionCallback successCall
back, [Default=Undefined] optional RTCErrorCallback failureCallback, optional Di
ctionary rtcOfferOptions); |
40 | 42 |
41 [RaisesException] void createAnswer(RTCSessionDescriptionCallback successCal
lback, [Default=Undefined] optional RTCErrorCallback failureCallback, optional D
ictionary mediaConstraints); | 43 [RaisesException] void createAnswer(RTCSessionDescriptionCallback successCal
lback, [Default=Undefined] optional RTCErrorCallback failureCallback, optional D
ictionary mediaConstraints); |
42 | 44 |
43 [RaisesException] void setLocalDescription(RTCSessionDescription description
, [Default=Undefined] optional VoidCallback successCallback, [Default=Undefined]
optional RTCErrorCallback failureCallback); | 45 [RaisesException] void setLocalDescription(RTCSessionDescription description
, [Default=Undefined] optional VoidCallback successCallback, [Default=Undefined]
optional RTCErrorCallback failureCallback); |
44 [RaisesException=Getter] readonly attribute RTCSessionDescription localDescr
iption; | 46 readonly attribute RTCSessionDescription localDescription; |
45 | 47 |
46 [RaisesException] void setRemoteDescription(RTCSessionDescription descriptio
n, [Default=Undefined] optional VoidCallback successCallback, [Default=Undefined
] optional RTCErrorCallback failureCallback); | 48 [RaisesException] void setRemoteDescription(RTCSessionDescription descriptio
n, [Default=Undefined] optional VoidCallback successCallback, [Default=Undefined
] optional RTCErrorCallback failureCallback); |
47 [RaisesException=Getter] readonly attribute RTCSessionDescription remoteDesc
ription; | 49 readonly attribute RTCSessionDescription remoteDescription; |
48 | 50 |
49 readonly attribute DOMString signalingState; | 51 readonly attribute DOMString signalingState; |
50 | 52 |
51 [RaisesException] void updateIce(optional Dictionary configuration, optional
Dictionary mediaConstraints); | 53 [RaisesException] void updateIce(optional Dictionary configuration, optional
Dictionary mediaConstraints); |
52 | 54 |
53 // DEPRECATED | 55 // DEPRECATED |
54 [RaisesException] void addIceCandidate(RTCIceCandidate candidate); | 56 [RaisesException] void addIceCandidate(RTCIceCandidate candidate); |
55 | 57 |
56 [RaisesException] void addIceCandidate(RTCIceCandidate candidate, VoidCallba
ck successCallback, RTCErrorCallback failureCallback); | 58 [RaisesException] void addIceCandidate(RTCIceCandidate candidate, VoidCallba
ck successCallback, RTCErrorCallback failureCallback); |
57 | 59 |
(...skipping 16 matching lines...) Expand all Loading... |
74 [RaisesException] void close(); | 76 [RaisesException] void close(); |
75 | 77 |
76 attribute EventHandler onnegotiationneeded; | 78 attribute EventHandler onnegotiationneeded; |
77 attribute EventHandler onicecandidate; | 79 attribute EventHandler onicecandidate; |
78 attribute EventHandler onsignalingstatechange; | 80 attribute EventHandler onsignalingstatechange; |
79 attribute EventHandler onaddstream; | 81 attribute EventHandler onaddstream; |
80 attribute EventHandler onremovestream; | 82 attribute EventHandler onremovestream; |
81 attribute EventHandler oniceconnectionstatechange; | 83 attribute EventHandler oniceconnectionstatechange; |
82 attribute EventHandler ondatachannel; | 84 attribute EventHandler ondatachannel; |
83 }; | 85 }; |
OLD | NEW |