setParticipantScreenSharing method

  1. @override
Future<void> setParticipantScreenSharing({
  1. required ParticipantScreenSharingConfig config,
})
override

Implementation

@override
Future<void> setParticipantScreenSharing({
  required ParticipantScreenSharingConfig config,
}) async {
  final state =
      await _remoteSubscribers[config.participantId]?.setScreenSharing(
    config.isSharing,
    screenTrackId: config.screenTrackId,
  );

  if (state != null) {
    _remoteSubscribers[config.participantId] = state;
    _notify(CallbackEvents.shouldBeUpdateState);
  }
}