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 final int readyState; |
| 25 |
| 26 final _MediaStreamListJs remoteStreams; |
| 27 |
| 28 void addEventListener(String type, EventListener listener, bool useCapture) na
tive; |
| 29 |
| 30 void addStream(_MediaStreamJs stream) native; |
| 31 |
| 32 void close() native; |
| 33 |
| 34 bool dispatchEvent(_EventJs event) native; |
| 35 |
| 36 void processSignalingMessage(String message) native; |
| 37 |
| 38 void removeEventListener(String type, EventListener listener, bool useCapture)
native; |
| 39 |
| 40 void removeStream(_MediaStreamJs stream) native; |
| 41 |
| 42 void send(String text) native; |
| 43 } |
OLD | NEW |