OLD | NEW |
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 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 | 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. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 // WARNING: Do not edit - generated code. | 5 // WARNING: Do not edit - generated code. |
6 | 6 |
7 interface PeerConnection { | 7 interface PeerConnection { |
8 | 8 |
9 static final int ACTIVE = 2; | 9 static final int ACTIVE = 2; |
10 | 10 |
11 static final int CLOSED = 3; | 11 static final int CLOSED = 3; |
12 | 12 |
13 static final int NEGOTIATING = 1; | 13 static final int NEGOTIATING = 1; |
14 | 14 |
15 static final int NEW = 0; | 15 static final int NEW = 0; |
16 | 16 |
17 final MediaStreamList localStreams; | 17 final MediaStreamList localStreams; |
18 | 18 |
19 EventListener onaddstream; | 19 EventListener onaddstream; |
20 | 20 |
21 EventListener onconnecting; | 21 EventListener onconnecting; |
22 | 22 |
23 EventListener onmessage; | 23 EventListener onmessage; |
24 | 24 |
25 EventListener onopen; | 25 EventListener onopen; |
26 | 26 |
27 EventListener onremovestream; | 27 EventListener onremovestream; |
28 | 28 |
| 29 EventListener onstatechange; |
| 30 |
29 final int readyState; | 31 final int readyState; |
30 | 32 |
31 final MediaStreamList remoteStreams; | 33 final MediaStreamList remoteStreams; |
32 | 34 |
33 void addEventListener(String type, EventListener listener, bool useCapture); | 35 void addEventListener(String type, EventListener listener, [bool useCapture]); |
34 | 36 |
35 void addStream(MediaStream stream); | 37 void addStream(MediaStream stream); |
36 | 38 |
37 void close(); | 39 void close(); |
38 | 40 |
39 bool dispatchEvent(Event event); | 41 bool dispatchEvent(Event event); |
40 | 42 |
41 void processSignalingMessage(String message); | 43 void processSignalingMessage(String message); |
42 | 44 |
43 void removeEventListener(String type, EventListener listener, bool useCapture)
; | 45 void removeEventListener(String type, EventListener listener, [bool useCapture
]); |
44 | 46 |
45 void removeStream(MediaStream stream); | 47 void removeStream(MediaStream stream); |
46 | 48 |
47 void send(String text); | 49 void send(String text); |
48 } | 50 } |
OLD | NEW |