Network Events - Flutter
VideoSDK's qualityLimitation event keeps you informed whenever media quality is affected or recovers during a meeting, giving you the context you need to act and keep the experience smooth for your users.
qualityLimitation
-
This event is triggered whenever a media quality limitation is either detected or resolved during a meeting.
-
The callback includes a
typeparameter that specifies the cause of the quality limitation. Possible values:cpu: Quality is reduced due to high CPU usage.bandwidth: Quality is reduced due to insufficient bandwidth.congestion: Quality is reduced due to network congestion.
-
The callback also includes a
stateparameter that indicates the current status of the limitation:detected: A limitation has been identified.resolved: The limitation has been cleared.
-
A
timestampparameter is provided, representing the exact time (in milliseconds since epoch) when the event occurred. -
It can be subscribed to using the
Roomclass.
Example
Here is an example demonstrating the usage of the event mentioned on this page.
import 'package:videosdk/videosdk.dart';
Room room;
room.on(Events.qualityLimitation, (type, state, timestamp) {
print("Quality Limitiation for $type on $state at $timestamp");
});
API Reference
The API references for all the methods and events utilized in this guide are provided below.
Got a Question? Ask us on discord

