Package com.viam.sdk.java.webrtc
Class PeerConnection
java.lang.Object
com.viam.sdk.java.webrtc.PeerConnection
- All Implemented Interfaces:
PeerConnection
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.viam.sdk.core.webrtc.PeerConnection
PeerConnection.BundlePolicy, PeerConnection.ICEConnectionState, PeerConnection.ICEGatheringState, PeerConnection.ICEServer, PeerConnection.MediaStreamObserver<MediaStreamT>, PeerConnection.Observer<MediaStreamT>, PeerConnection.RTCConfiguration, PeerConnection.SDPSemantics, PeerConnection.SignalingState, PeerConnection.State
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addIceCandidate
(ICECandidate candidate) void
close()
void
createAnswer
(SessionDescription.Observer observer) createDataChannel
(String label, DataChannel.Init dataChanInit) void
createOffer
(SessionDescription.Observer observer) void
setLocalDescription
(SessionDescription.Observer observer, SessionDescription sdp) void
setRemoteDescription
(SessionDescription.Observer observer, SessionDescription sdp)
-
Constructor Details
-
PeerConnection
public PeerConnection(dev.onvoid.webrtc.RTCPeerConnection nativePeerConnection)
-
-
Method Details
-
createDataChannel
- Specified by:
createDataChannel
in interfacePeerConnection
-
getLocalDescription
- Specified by:
getLocalDescription
in interfacePeerConnection
-
getRemoteDescription
- Specified by:
getRemoteDescription
in interfacePeerConnection
-
createOffer
- Specified by:
createOffer
in interfacePeerConnection
-
createAnswer
- Specified by:
createAnswer
in interfacePeerConnection
-
setLocalDescription
- Specified by:
setLocalDescription
in interfacePeerConnection
-
setRemoteDescription
- Specified by:
setRemoteDescription
in interfacePeerConnection
-
addIceCandidate
- Specified by:
addIceCandidate
in interfacePeerConnection
-
close
public void close()- Specified by:
close
in interfacePeerConnection
-