| Constructor and Description |
|---|
PeerWrapper(android.app.Activity app,
android.content.Intent intent) |
| Modifier and Type | Method and Description |
|---|---|
void |
beginTransactionWithOffer()
This method begins the communication between the Peer and the signaling server.
|
void |
closeConnection()
This method close the established connection between the Peers.
|
void |
setEmitter(Emitter emitter)
This methos set a emitter object to the PeerWrapper class.
|
void |
setRemoteDescriptorPeer(org.webrtc.SessionDescription descriptorPeer)
This method set the new remote sessions descriptor with the information needed to the peer
|
void |
setRemoteIceCandidate(org.webrtc.IceCandidate candidate)
This method set the new remote ice candidate with the information needed to the peer.
|
public PeerWrapper(android.app.Activity app,
android.content.Intent intent)
public void setEmitter(Emitter emitter)
emitter - the emitter that is going to send all the required information to the signaling server.public void closeConnection()
public void beginTransactionWithOffer()
This method is responsible to begin the first state of the WebRTC stream.
public void setRemoteDescriptorPeer(org.webrtc.SessionDescription descriptorPeer)
setRemoteDescriptorPeer in interface IPeerdescriptorPeer - remote session descriptor that was sent over the signaling server.public void setRemoteIceCandidate(org.webrtc.IceCandidate candidate)
setRemoteIceCandidate in interface IPeercandidate - the remote ice candidate that was sent over the signaling server.