| 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 15 matching lines...) Expand all Loading... |
| 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 module mediastream { | 31 module mediastream { |
| 32 | 32 |
| 33 interface [ | 33 interface [ |
| 34 Conditional=MEDIA_STREAM, | 34 Conditional=MEDIA_STREAM, |
| 35 ActiveDOMObject, | 35 ActiveDOMObject, |
| 36 Constructor(in Dictionary rtcICEServers, in [Optional=DefaultIsUndefined
] Dictionary mediaConstraints), | 36 Constructor(in Dictionary rtcIceServers, in [Optional=DefaultIsUndefined
] Dictionary mediaConstraints), |
| 37 ConstructorRaisesException, | 37 ConstructorRaisesException, |
| 38 CallWith=ScriptExecutionContext, | 38 CallWith=ScriptExecutionContext, |
| 39 EventTarget | 39 EventTarget |
| 40 ] RTCPeerConnection { | 40 ] RTCPeerConnection { |
| 41 void createOffer(in [Callback] RTCSessionDescriptionCallback successCall
back, in [Callback,Optional=DefaultIsUndefined] RTCErrorCallback failureCallback
, in [Optional=DefaultIsUndefined] Dictionary mediaConstraints) |
| 42 raises(DOMException); |
| 43 |
| 44 void createAnswer(in [Callback] RTCSessionDescriptionCallback successCal
lback, in [Callback, Optional=DefaultIsUndefined] RTCErrorCallback failureCallba
ck, in [Optional=DefaultIsUndefined] Dictionary mediaConstraints) |
| 45 raises(DOMException); |
| 46 |
| 47 void setLocalDescription(in RTCSessionDescription description, in [Callb
ack, Optional=DefaultIsUndefined] VoidCallback successCallback, in [Callback, Op
tional=DefaultIsUndefined] RTCErrorCallback failureCallback) |
| 48 raises(DOMException); |
| 49 readonly attribute RTCSessionDescription localDescription |
| 50 getter raises(DOMException); |
| 51 |
| 52 void setRemoteDescription(in RTCSessionDescription description, in [Call
back, Optional=DefaultIsUndefined] VoidCallback successCallback, in [Callback, O
ptional=DefaultIsUndefined] RTCErrorCallback failureCallback) |
| 53 raises(DOMException); |
| 54 readonly attribute RTCSessionDescription remoteDescription |
| 55 getter raises(DOMException); |
| 56 |
| 57 readonly attribute DOMString readyState; |
| 58 |
| 59 void updateIce(in [Optional=DefaultIsUndefined] Dictionary configuration
, in [Optional=DefaultIsUndefined] Dictionary mediaConstraints) |
| 60 raises(DOMException); |
| 61 |
| 62 void addIceCandidate(in RTCIceCandidate candidate) |
| 63 raises(DOMException); |
| 64 |
| 65 readonly attribute DOMString iceState; |
| 66 |
| 67 readonly attribute MediaStreamList localStreams; |
| 68 readonly attribute MediaStreamList remoteStreams; |
| 69 |
| 70 [StrictTypeChecking] void addStream(in MediaStream stream, in [Optional=
DefaultIsUndefined] Dictionary mediaConstraints) |
| 71 raises(DOMException); |
| 72 [StrictTypeChecking] void removeStream(in MediaStream stream) |
| 73 raises(DOMException); |
| 74 |
| 75 void close() |
| 76 raises(DOMException); |
| 77 |
| 78 attribute EventListener onicecandidate; |
| 79 attribute EventListener onopen; |
| 80 attribute EventListener onstatechange; |
| 81 attribute EventListener onaddstream; |
| 82 attribute EventListener onremovestream; |
| 83 attribute EventListener onicechange; |
| 84 |
| 41 // EventTarget interface | 85 // EventTarget interface |
| 42 void addEventListener(in DOMString type, | 86 void addEventListener(in DOMString type, |
| 43 in EventListener listener, | 87 in EventListener listener, |
| 44 in [Optional] boolean useCapture); | 88 in [Optional] boolean useCapture); |
| 45 void removeEventListener(in DOMString type, | 89 void removeEventListener(in DOMString type, |
| 46 in EventListener listener, | 90 in EventListener listener, |
| 47 in [Optional] boolean useCapture); | 91 in [Optional] boolean useCapture); |
| 48 boolean dispatchEvent(in Event event) | 92 boolean dispatchEvent(in Event event) |
| 49 raises(EventException); | 93 raises(EventException); |
| 50 }; | 94 }; |
| 51 | 95 |
| 52 } | 96 } |
| OLD | NEW |