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

Extending 'Recommended mark names' to allow user agents to detect media timeouts #110

Open
sushraja-msft opened this issue Jun 3, 2024 · 1 comment

Comments

@sushraja-msft
Copy link

sushraja-msft commented Jun 3, 2024

I would like to propose extending performance mark with a recommended mark name for website detected media timeout –
‘mark_media_timeout’, { ‘detail’: {‘error_code’: 1}} so as to allow UA to collect metrics or other diagnostics to help root cause media related performance issues.

Adding context, today media sites detect timeouts and errors while trying to play protected content for APIs like

some of these APIs are on the video element while others are related API promises taking too long to resolve.
That is
Problem 1: The breadth of APIs that a UA has to cover to measure media playback timeouts is large.
Problem 2: Secondly it is not trivial to duplicate the website logic on the UA side, for example tracking time to first frame needs additional checks to see if the tab is visible.

Even if the UA has a better implementation to detect time to first frame, being able to validate the media site's perspective of a timeouts and identify discrepancy is useful that having these additional recommended mark names is valuable.

@nicjansma
Copy link

Thanks for bringing this to our attention! This was discussed on the June 6 2024 W3C WebPerf Working Group call.

  • General agreement this could be a useful signal for websites/frameworks/etc to give to the browser (to surface through Dev Tools, RUM, etc)
  • Might be useful to have a cross-group collaboration at TPAC to see if other groups would want to think about similar use-cases

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

2 participants