OLD | NEW |
(Empty) | |
| 1 |
| 2 class _PeerConnectionImpl implements PeerConnection native "*PeerConnection" { |
| 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 _MediaStreamListImpl 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 _MediaStreamListImpl remoteStreams; |
| 29 |
| 30 void addEventListener(String type, EventListener listener, [bool useCapture =
null]) native; |
| 31 |
| 32 void addStream(_MediaStreamImpl stream) native; |
| 33 |
| 34 void close() native; |
| 35 |
| 36 bool dispatchEvent(_EventImpl 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(_MediaStreamImpl stream) native; |
| 43 |
| 44 void send(String text) native; |
| 45 } |
OLD | NEW |