OLD | NEW |
1 | 1 |
2 class _PeerConnectionJs extends _DOMTypeJs implements PeerConnection native "*Pe
erConnection" { | 2 class _PeerConnectionJs extends _DOMTypeJs implements PeerConnection native "*Pe
erConnection" { |
3 | 3 |
4 static final int ACTIVE = 2; | 4 static final int ACTIVE = 2; |
5 | 5 |
6 static final int CLOSED = 3; | 6 static final int CLOSED = 3; |
7 | 7 |
8 static final int NEGOTIATING = 1; | 8 static final int NEGOTIATING = 1; |
9 | 9 |
10 static final int NEW = 0; | 10 static final int NEW = 0; |
11 | 11 |
12 final _MediaStreamListJs localStreams; | 12 final _MediaStreamListJs localStreams; |
13 | 13 |
14 EventListener onaddstream; | 14 EventListener onaddstream; |
15 | 15 |
16 EventListener onconnecting; | 16 EventListener onconnecting; |
17 | 17 |
18 EventListener onmessage; | 18 EventListener onmessage; |
19 | 19 |
20 EventListener onopen; | 20 EventListener onopen; |
21 | 21 |
22 EventListener onremovestream; | 22 EventListener onremovestream; |
23 | 23 |
| 24 EventListener onstatechange; |
| 25 |
24 final int readyState; | 26 final int readyState; |
25 | 27 |
26 final _MediaStreamListJs remoteStreams; | 28 final _MediaStreamListJs remoteStreams; |
27 | 29 |
28 void addEventListener(String type, EventListener listener, bool useCapture) na
tive; | 30 void addEventListener(String type, EventListener listener, [bool useCapture =
null]) native; |
29 | 31 |
30 void addStream(_MediaStreamJs stream) native; | 32 void addStream(_MediaStreamJs stream) native; |
31 | 33 |
32 void close() native; | 34 void close() native; |
33 | 35 |
34 bool dispatchEvent(_EventJs event) native; | 36 bool dispatchEvent(_EventJs event) native; |
35 | 37 |
36 void processSignalingMessage(String message) native; | 38 void processSignalingMessage(String message) native; |
37 | 39 |
38 void removeEventListener(String type, EventListener listener, bool useCapture)
native; | 40 void removeEventListener(String type, EventListener listener, [bool useCapture
= null]) native; |
39 | 41 |
40 void removeStream(_MediaStreamJs stream) native; | 42 void removeStream(_MediaStreamJs stream) native; |
41 | 43 |
42 void send(String text) native; | 44 void send(String text) native; |
43 } | 45 } |
OLD | NEW |