-
public final class RtcSession
-
-
Field Summary
Fields Modifier and Type Field Description private final <ERROR CLASS>sfuSocketState
-
Method Summary
Modifier and Type Method Description final <ERROR CLASS>getSfuSocketState()final Unitreconnect(Boolean forceRestart)final Unitconnect(ReconnectDetails reconnectDetails, List<PublishOption> options)Public entry point kept for backward compatibility. final UnitsetScreenShareTrack()final Unitcleanup()final UnithandleEvent(VideoEvent event)final UnithandleIceTrickle(ICETrickleEvent event)Triggered whenever we receive new ice candidate from the SFU final UnithandleSubscriberOffer(SubscriberOfferEvent offerEvent)This is called when the SFU sends us an offer Sets the remote description
Creates an answer
Sets the local description
Sends the answer back to the SFU
final RtcStatsReportgetPublisherStats()final RtcStatsReportgetSubscriberStats()final Result<ICERestartResponse>requestSubscriberIceRestart()final Result<ICERestartResponse>requestPublisherIceRestart()final UnitupdateTrackDimensions(String sessionId, TrackType trackType, Boolean visible, VideoDimension dimensions, String viewportId)-
-
Method Detail
-
getSfuSocketState
final <ERROR CLASS> getSfuSocketState()
-
reconnect
final Unit reconnect(Boolean forceRestart)
- Parameters:
forceRestart-set to true if you want to force restart both ICE connections regardless of their current connection status (even if they are CONNECTED)
-
connect
@Deprecated(message = Use connectInternal() which returns SfuConnectionResult instead of throwing., replaceWith = @ReplaceWith(imports = {}, expression = connectInternal(reconnectDetails, options))) final Unit connect(ReconnectDetails reconnectDetails, List<PublishOption> options)
Public entry point kept for backward compatibility. Delegates to connectInternal and throws on failure.
Prefer connectInternal which returns a typed SfuConnectionResult instead of throwing, enabling exhaustive
whenhandling.
-
setScreenShareTrack
final Unit setScreenShareTrack()
-
handleEvent
final Unit handleEvent(VideoEvent event)
-
handleIceTrickle
@VisibleForTesting() final Unit handleIceTrickle(ICETrickleEvent event)
Triggered whenever we receive new ice candidate from the SFU
-
handleSubscriberOffer
@VisibleForTesting() final Unit handleSubscriberOffer(SubscriberOfferEvent offerEvent)
This is called when the SFU sends us an offer
Sets the remote description
Creates an answer
Sets the local description
Sends the answer back to the SFU
-
getPublisherStats
final RtcStatsReport getPublisherStats()
-
getSubscriberStats
final RtcStatsReport getSubscriberStats()
-
requestSubscriberIceRestart
final Result<ICERestartResponse> requestSubscriberIceRestart()
-
requestPublisherIceRestart
final Result<ICERestartResponse> requestPublisherIceRestart()
-
updateTrackDimensions
@Synchronized() final Unit updateTrackDimensions(String sessionId, TrackType trackType, Boolean visible, VideoDimension dimensions, String viewportId)
-
-
-