| 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 interface PeerConnection default _PeerConnectionFactoryProvider { | |
| 8 | |
| 9 PeerConnection(String serverConfiguration, SignalingCallback signalingCallback
); | |
| 10 | |
| 11 static final int ACTIVE = 2; | |
| 12 | |
| 13 static final int CLOSED = 3; | |
| 14 | |
| 15 static final int NEGOTIATING = 1; | |
| 16 | |
| 17 static final int NEW = 0; | |
| 18 | |
| 19 final MediaStreamList localStreams; | |
| 20 | |
| 21 EventListener onaddstream; | |
| 22 | |
| 23 EventListener onconnecting; | |
| 24 | |
| 25 EventListener onmessage; | |
| 26 | |
| 27 EventListener onopen; | |
| 28 | |
| 29 EventListener onremovestream; | |
| 30 | |
| 31 EventListener onstatechange; | |
| 32 | |
| 33 final int readyState; | |
| 34 | |
| 35 final MediaStreamList remoteStreams; | |
| 36 | |
| 37 void addEventListener(String type, EventListener listener, [bool useCapture]); | |
| 38 | |
| 39 void addStream(MediaStream stream); | |
| 40 | |
| 41 void close(); | |
| 42 | |
| 43 bool dispatchEvent(Event event); | |
| 44 | |
| 45 void processSignalingMessage(String message); | |
| 46 | |
| 47 void removeEventListener(String type, EventListener listener, [bool useCapture
]); | |
| 48 | |
| 49 void removeStream(MediaStream stream); | |
| 50 | |
| 51 void send(String text); | |
| 52 } | |
| OLD | NEW |