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