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 final int readyState; |
| 30 |
| 31 final MediaStreamList remoteStreams; |
| 32 |
| 33 void addEventListener(String type, EventListener listener, bool useCapture); |
| 34 |
| 35 void addStream(MediaStream stream); |
| 36 |
| 37 void close(); |
| 38 |
| 39 bool dispatchEvent(Event event); |
| 40 |
| 41 void processSignalingMessage(String message); |
| 42 |
| 43 void removeEventListener(String type, EventListener listener, bool useCapture)
; |
| 44 |
| 45 void removeStream(MediaStream stream); |
| 46 |
| 47 void send(String text); |
| 48 } |
OLD | NEW |