setVideoEnabled method

Future<void> setVideoEnabled(
  1. bool enabled, {
  2. MediaSourceKind source = MediaSourceKind.device,
})

Sets the inbound video of this CallMember as enabled.

Implementation

Future<void> setVideoEnabled(
  bool enabled, {
  MediaSourceKind source = MediaSourceKind.device,
}) async {
  Log.debug('setVideoEnabled($enabled, $source)', '$runtimeType');

  if (enabled) {
    await _connection?.enableRemoteVideo(source);
  } else {
    await _connection?.disableRemoteVideo(source);
  }
}