| OLD | NEW |
| (Empty) | |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. |
| 4 |
| 5 // WARNING: Do not edit - generated code. |
| 6 |
| 7 /// @domName PeerConnection00 |
| 8 interface PeerConnection00 extends EventTarget default _PeerConnection00FactoryP
rovider { |
| 9 |
| 10 PeerConnection00(String serverConfiguration, IceCallback iceCallback); |
| 11 |
| 12 /** |
| 13 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve
ntTarget.dispatchEvent |
| 14 */ |
| 15 PeerConnection00Events get on(); |
| 16 |
| 17 static final int ACTIVE = 2; |
| 18 |
| 19 static final int CLOSED = 3; |
| 20 |
| 21 static final int ICE_CHECKING = 0x300; |
| 22 |
| 23 static final int ICE_CLOSED = 0x700; |
| 24 |
| 25 static final int ICE_COMPLETED = 0x500; |
| 26 |
| 27 static final int ICE_CONNECTED = 0x400; |
| 28 |
| 29 static final int ICE_FAILED = 0x600; |
| 30 |
| 31 static final int ICE_GATHERING = 0x100; |
| 32 |
| 33 static final int ICE_WAITING = 0x200; |
| 34 |
| 35 static final int NEW = 0; |
| 36 |
| 37 static final int OPENING = 1; |
| 38 |
| 39 static final int SDP_ANSWER = 0x300; |
| 40 |
| 41 static final int SDP_OFFER = 0x100; |
| 42 |
| 43 static final int SDP_PRANSWER = 0x200; |
| 44 |
| 45 /** @domName PeerConnection00.iceState */ |
| 46 final int iceState; |
| 47 |
| 48 /** @domName PeerConnection00.localDescription */ |
| 49 final SessionDescription localDescription; |
| 50 |
| 51 /** @domName PeerConnection00.localStreams */ |
| 52 final MediaStreamList localStreams; |
| 53 |
| 54 /** @domName PeerConnection00.readyState */ |
| 55 final int readyState; |
| 56 |
| 57 /** @domName PeerConnection00.remoteDescription */ |
| 58 final SessionDescription remoteDescription; |
| 59 |
| 60 /** @domName PeerConnection00.remoteStreams */ |
| 61 final MediaStreamList remoteStreams; |
| 62 |
| 63 /** @domName PeerConnection00.addEventListener */ |
| 64 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]); |
| 65 |
| 66 /** @domName PeerConnection00.addStream */ |
| 67 void addStream(MediaStream stream, [Map mediaStreamHints]); |
| 68 |
| 69 /** @domName PeerConnection00.close */ |
| 70 void close(); |
| 71 |
| 72 /** @domName PeerConnection00.createAnswer */ |
| 73 SessionDescription createAnswer(String offer, [Map mediaHints]); |
| 74 |
| 75 /** @domName PeerConnection00.createOffer */ |
| 76 SessionDescription createOffer([Map mediaHints]); |
| 77 |
| 78 /** @domName PeerConnection00.dispatchEvent */ |
| 79 bool $dom_dispatchEvent(Event event); |
| 80 |
| 81 /** @domName PeerConnection00.processIceMessage */ |
| 82 void processIceMessage(IceCandidate candidate); |
| 83 |
| 84 /** @domName PeerConnection00.removeEventListener */ |
| 85 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]); |
| 86 |
| 87 /** @domName PeerConnection00.removeStream */ |
| 88 void removeStream(MediaStream stream); |
| 89 |
| 90 /** @domName PeerConnection00.setLocalDescription */ |
| 91 void setLocalDescription(int action, SessionDescription desc); |
| 92 |
| 93 /** @domName PeerConnection00.setRemoteDescription */ |
| 94 void setRemoteDescription(int action, SessionDescription desc); |
| 95 |
| 96 /** @domName PeerConnection00.startIce */ |
| 97 void startIce([Map iceOptions]); |
| 98 } |
| 99 |
| 100 interface PeerConnection00Events extends Events { |
| 101 |
| 102 EventListenerList get addStream(); |
| 103 |
| 104 EventListenerList get connecting(); |
| 105 |
| 106 EventListenerList get open(); |
| 107 |
| 108 EventListenerList get removeStream(); |
| 109 |
| 110 EventListenerList get stateChange(); |
| 111 } |
| OLD | NEW |