P2PSession constructor

P2PSession(
  1. P2PClient client,
  2. CubeRTCSessionDescription cubeSdp, {
  3. bool startScreenSharing = false,
  4. DesktopCapturerSource? desktopCapturerSource,
  5. bool useIOSBroadcasting = false,
  6. bool requestAudioForScreenSharing = false,
  7. String? selectedAudioInputDevice,
  8. String? selectedVideoInputDevice,
})

Implementation

P2PSession(
  super.client,
  this.cubeSdp, {
  super.startScreenSharing,
  super.desktopCapturerSource,
  super.useIOSBroadcasting,
  super.requestAudioForScreenSharing,
  super.selectedAudioInputDevice,
  super.selectedVideoInputDevice,
}) {
  setState(RTCSessionState.RTC_SESSION_NEW);
  _createChannelsForOpponents(cubeSdp.opponents);
}