| 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 13 matching lines...) Expand all Loading... |
| 24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | 24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
| 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
| 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 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 Conditional=MEDIA_STREAM, | 32 Conditional=MEDIA_STREAM, |
| 33 ActiveDOMObject, | 33 ActiveDOMObject, |
| 34 Constructor(in Dictionary rtcIceServers, in [Optional=DefaultIsUndefined] Di
ctionary mediaConstraints), | 34 Constructor(in Dictionary rtcIceServers, in [Optional] Dictionary mediaConst
raints), |
| 35 ConstructorRaisesException, | 35 ConstructorRaisesException, |
| 36 CallWith=ScriptExecutionContext, | 36 CallWith=ScriptExecutionContext, |
| 37 EventTarget | 37 EventTarget |
| 38 ] interface RTCPeerConnection { | 38 ] interface RTCPeerConnection { |
| 39 void createOffer(in [Callback] RTCSessionDescriptionCallback successCallback
, in [Callback,Optional=DefaultIsUndefined] RTCErrorCallback failureCallback, in
[Optional=DefaultIsUndefined] Dictionary mediaConstraints) | 39 void createOffer(in [Callback] RTCSessionDescriptionCallback successCallback
, in [Callback,Optional=DefaultIsUndefined] RTCErrorCallback failureCallback, in
[Optional] Dictionary mediaConstraints) |
| 40 raises(DOMException); | 40 raises(DOMException); |
| 41 | 41 |
| 42 void createAnswer(in [Callback] RTCSessionDescriptionCallback successCallbac
k, in [Callback, Optional=DefaultIsUndefined] RTCErrorCallback failureCallback,
in [Optional=DefaultIsUndefined] Dictionary mediaConstraints) | 42 void createAnswer(in [Callback] RTCSessionDescriptionCallback successCallbac
k, in [Callback, Optional=DefaultIsUndefined] RTCErrorCallback failureCallback,
in [Optional] Dictionary mediaConstraints) |
| 43 raises(DOMException); | 43 raises(DOMException); |
| 44 | 44 |
| 45 void setLocalDescription(in RTCSessionDescription description, in [Callback,
Optional=DefaultIsUndefined] VoidCallback successCallback, in [Callback, Option
al=DefaultIsUndefined] RTCErrorCallback failureCallback) | 45 void setLocalDescription(in RTCSessionDescription description, in [Callback,
Optional=DefaultIsUndefined] VoidCallback successCallback, in [Callback, Option
al=DefaultIsUndefined] RTCErrorCallback failureCallback) |
| 46 raises(DOMException); | 46 raises(DOMException); |
| 47 readonly attribute RTCSessionDescription localDescription | 47 readonly attribute RTCSessionDescription localDescription |
| 48 getter raises(DOMException); | 48 getter raises(DOMException); |
| 49 | 49 |
| 50 void setRemoteDescription(in RTCSessionDescription description, in [Callback
, Optional=DefaultIsUndefined] VoidCallback successCallback, in [Callback, Optio
nal=DefaultIsUndefined] RTCErrorCallback failureCallback) | 50 void setRemoteDescription(in RTCSessionDescription description, in [Callback
, Optional=DefaultIsUndefined] VoidCallback successCallback, in [Callback, Optio
nal=DefaultIsUndefined] RTCErrorCallback failureCallback) |
| 51 raises(DOMException); | 51 raises(DOMException); |
| 52 readonly attribute RTCSessionDescription remoteDescription | 52 readonly attribute RTCSessionDescription remoteDescription |
| 53 getter raises(DOMException); | 53 getter raises(DOMException); |
| 54 | 54 |
| 55 readonly attribute DOMString readyState; | 55 readonly attribute DOMString readyState; |
| 56 | 56 |
| 57 void updateIce(in [Optional=DefaultIsUndefined] Dictionary configuration, in
[Optional=DefaultIsUndefined] Dictionary mediaConstraints) | 57 void updateIce(in [Optional] Dictionary configuration, in [Optional] Diction
ary mediaConstraints) |
| 58 raises(DOMException); | 58 raises(DOMException); |
| 59 | 59 |
| 60 void addIceCandidate(in RTCIceCandidate candidate) | 60 void addIceCandidate(in RTCIceCandidate candidate) |
| 61 raises(DOMException); | 61 raises(DOMException); |
| 62 | 62 |
| 63 readonly attribute DOMString iceState; | 63 readonly attribute DOMString iceState; |
| 64 | 64 |
| 65 readonly attribute MediaStreamList localStreams; | 65 readonly attribute MediaStreamList localStreams; |
| 66 readonly attribute MediaStreamList remoteStreams; | 66 readonly attribute MediaStreamList remoteStreams; |
| 67 | 67 |
| 68 [StrictTypeChecking] void addStream(in MediaStream stream, in [Optional=Defa
ultIsUndefined] Dictionary mediaConstraints) | 68 [StrictTypeChecking] void addStream(in MediaStream stream, in [Optional] Dic
tionary mediaConstraints) |
| 69 raises(DOMException); | 69 raises(DOMException); |
| 70 [StrictTypeChecking] void removeStream(in MediaStream stream) | 70 [StrictTypeChecking] void removeStream(in MediaStream stream) |
| 71 raises(DOMException); | 71 raises(DOMException); |
| 72 | 72 |
| 73 void getStats(in [Callback] RTCStatsCallback successCallback, in [Optional=D
efaultIsUndefined] MediaStreamTrack selector); | 73 void getStats(in [Callback] RTCStatsCallback successCallback, in [Optional=D
efaultIsUndefined] MediaStreamTrack selector); |
| 74 | 74 |
| 75 RTCDataChannel createDataChannel(in [TreatNullAs=NullString, TreatUndefinedA
s=NullString] DOMString label, in [Optional=DefaultIsUndefined] Dictionary optio
ns) | 75 RTCDataChannel createDataChannel(in [TreatNullAs=NullString, TreatUndefinedA
s=NullString] DOMString label, in [Optional] Dictionary options) |
| 76 raises(DOMException); | 76 raises(DOMException); |
| 77 | 77 |
| 78 void close() | 78 void close() |
| 79 raises(DOMException); | 79 raises(DOMException); |
| 80 | 80 |
| 81 attribute EventListener onnegotiationneeded; | 81 attribute EventListener onnegotiationneeded; |
| 82 attribute EventListener onicecandidate; | 82 attribute EventListener onicecandidate; |
| 83 attribute EventListener onopen; | 83 attribute EventListener onopen; |
| 84 attribute EventListener onstatechange; | 84 attribute EventListener onstatechange; |
| 85 attribute EventListener onaddstream; | 85 attribute EventListener onaddstream; |
| 86 attribute EventListener onremovestream; | 86 attribute EventListener onremovestream; |
| 87 attribute EventListener onicechange; | 87 attribute EventListener onicechange; |
| 88 attribute EventListener ondatachannel; | 88 attribute EventListener ondatachannel; |
| 89 | 89 |
| 90 // EventTarget interface | 90 // EventTarget interface |
| 91 void addEventListener(in DOMString type, | 91 void addEventListener(in DOMString type, |
| 92 in EventListener listener, | 92 in EventListener listener, |
| 93 in [Optional] boolean useCapture); | 93 in [Optional] boolean useCapture); |
| 94 void removeEventListener(in DOMString type, | 94 void removeEventListener(in DOMString type, |
| 95 in EventListener listener, | 95 in EventListener listener, |
| 96 in [Optional] boolean useCapture); | 96 in [Optional] boolean useCapture); |
| 97 boolean dispatchEvent(in Event event) | 97 boolean dispatchEvent(in Event event) |
| 98 raises(EventException); | 98 raises(EventException); |
| 99 }; | 99 }; |
| 100 | 100 |
| OLD | NEW |