1, register a filter to the livekit room.
final _videoFilter = LivekitVideoFilter();
final _audioFilter = LivekitAudioFilter();
_room = Room(
roomOptions: RoomOptions(
defaultAudioCaptureOptions: AudioCaptureOptions(
processor: _audioFilter,
),
defaultCameraCaptureOptions: CameraCaptureOptions(
processor: _videoFilter,
),
),
);
await _room!.connect(url, token);
2, add your audio/video processing code here
Android Audio Track Video Track
iOS/macOS Audio Track Video Track