ambitious-london-87142
03/26/2025, 8:18 AMtall-airline-16756
03/26/2025, 8:18 AMtall-airline-16756
03/26/2025, 8:18 AMsetVideoQuality()
method on a RemoteTrackPublication
object to adjust the quality of a specific remote video track.
• For FPS (frames per second):
◦ In JavaScript, use setVideoFPS(fps: number)
.
◦ In Flutter, use setVideoFPS(int newValue)
to set the desired FPS (the server will try to return FPS close to this value).
◦ In Android, use setVideoFps(fps: Int?)
.
• For video dimensions: Use the setVideoDimensions(dimensions: Dimensions)
method.
These methods allow you to control the quality and FPS of a specific remote video track without impacting other participants' streams.
Sources: RemoteTrackPublication class - livekit_client library - Dart API | RemoteTrackPublication | LiveKit JS Client SDK - v2.8.1 | RemoteTrackPublicationambitious-london-87142
03/26/2025, 8:19 AMtall-airline-16756
03/26/2025, 8:19 AMremoteTrackPublication.setVideoQuality(VideoQuality newValue)
• For changing FPS (frames per second): `remoteTrackPublication.setVideoFPS(int newValue)`Note: The FPS setting is only supported for video codecs that support SVC (Scalable Video Coding). The server will try to return an FPS close to your requested value.
After making these changes, the SDK will automatically call sendUpdateTrackSettings()
to apply your changes to the track.
Sources: sendUpdateTrackSettings method - RemoteTrackPublication class - livekit_cli... | RemoteTrackPublication class - livekit_client library - Dart API | setVideoFPS method - RemoteTrackPublication class - livekit_client library ...ambitious-london-87142
03/26/2025, 9:24 AMtall-airline-16756
03/26/2025, 9:24 AM