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