Interface SubscriberKit.MediaLinkStatsListener
- Enclosing class:
SubscriberKit
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidonMediaLinkStats(SubscriberKit subscriber, SubscriberKit.SubscriberMediaLinkStats mediaLinkStats) Called periodically to report media link statistics for the subscriber.default voidonNetworkConditionChanged(SubscriberKit subscriber, SubscriberKit.SubscriberMediaLinkStats mediaLinkStats, String reason) Called whenever a network condition change is detected for the subscriber or remote publisher.
-
Method Details
-
onMediaLinkStats
default void onMediaLinkStats(SubscriberKit subscriber, SubscriberKit.SubscriberMediaLinkStats mediaLinkStats) Called periodically to report media link statistics for the subscriber. It provides transport-level metrics for both the local subscriber and the remote publisher.
- Parameters:
subscriber- The subscriber instance.mediaLinkStats- The media link statistics.
-
onNetworkConditionChanged
default void onNetworkConditionChanged(SubscriberKit subscriber, SubscriberKit.SubscriberMediaLinkStats mediaLinkStats, String reason) Called whenever a network condition change is detected for the subscriber or remote publisher.
This callback reports changes in overall network health rather than changes in the subscriber's video track state. It differs from video enabled/disabled callbacks in that it provides diagnostic information about network conditions.
The
reasonparameter indicates the cause of the network condition change and is currently reported asNETWORK_REASON_NETWORK_CONDITION_CHANGE.Applications can use this callback to react to network issues, such as updating UI indicators, logging telemetry, or triggering adaptive behavior.
- Parameters:
subscriber- The subscriber whose network condition changed.mediaLinkStats- The media link statistics.reason- String describing the reason for the network condition change.
-