Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Define a mechanism for setting the trigger duration for a video freeze #771

Open
flyingzl opened this issue Oct 9, 2023 · 0 comments
Open

Comments

@flyingzl
Copy link

flyingzl commented Oct 9, 2023

In the W3C Identifiers for WebRTC's Statistics API spec, the logic for marking a video freeze, is defined as follows(see freezeCount):

  1. Calculate the linear average of the past 30 rendering frame durations and label it as avg_frame_duration_ms.
  2. Calculate the interval between the current two frames. If this value is greater than Max(3 * avg_frame_duration_ms, avg_frame_duration_ms + 150), it is considered as a freeze.

In situations where the network is good, this logic is quite reasonable. However, in the case of a weak or poor network, the value of avg_frame_duration_ms may be larger, for example, 150ms. In this scenario, the freeze trigger value would be 450ms, which may not meet the needs in practice. As generally, 200ms might be considered a freeze.

So The spec can define a mechanism for developers to set the trigger duration for video freeze (i.e., when the interval between two frames exceeds this duration, it is recorded as a freeze event).

@flyingzl flyingzl changed the title define an mechanism for setting the trigger duration for a video freeze Define an mechanism for setting the trigger duration for a video freeze Oct 9, 2023
@flyingzl flyingzl changed the title Define an mechanism for setting the trigger duration for a video freeze Define a mechanism for setting the trigger duration for a video freeze Oct 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant