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