Package com.viam.sdk.core.webrtc
Class PeerConnectionFactory<MediaStreamT>
java.lang.Object
com.viam.sdk.core.webrtc.PeerConnectionFactory<MediaStreamT>
- Direct Known Subclasses:
PeerConnectionFactory
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract void
close()
protected abstract PeerConnection
createPeerConnection
(PeerConnection.RTCConfiguration rtcConfig, PeerConnection.Observer<MediaStreamT> observer) newPeerConnectionForClient
(boolean disableTrickle, PeerConnection.RTCConfiguration rtcConfig, PeerConnection.Observer<MediaStreamT> peerConnectionObserver, Logger logger)
-
Constructor Details
-
PeerConnectionFactory
public PeerConnectionFactory()
-
-
Method Details
-
createPeerConnection
protected abstract PeerConnection createPeerConnection(PeerConnection.RTCConfiguration rtcConfig, PeerConnection.Observer<MediaStreamT> observer) -
close
public abstract void close() -
newPeerConnectionForClient
public CompletableFuture<RPCPeerConnection> newPeerConnectionForClient(boolean disableTrickle, PeerConnection.RTCConfiguration rtcConfig, PeerConnection.Observer<MediaStreamT> peerConnectionObserver, Logger logger)
-