sendLocalVideoTileOn method

Future<void> sendLocalVideoTileOn()

Implementation

Future<void> sendLocalVideoTileOn() async {
  if (!_attendees.attendees.containsKey(_attendees.localId)) return;
  try {
    if (_attendees.attendees[_attendees.localId]!.isVideoOn) {
      await AmazonChime.instance.stopLocalVideo();
    } else {
      await AmazonChime.instance.startLocalVideo();
      await _refreshActiveCameraFacing();
    }
  } catch (e) {
    logger.e('Local video toggle failed: $e');
    rethrow;
  }
}