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
getVideoPlaybackQuality to detect how long it has taken to decode and present the first frame.
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.
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.