<story><title>Version 100 in Chrome and Firefox</title><url>https://hacks.mozilla.org/2022/02/version-100-in-chrome-and-firefox/</url></story><parent_chain></parent_chain><comment><author>vdnkh</author><text>A lot of people here are calling for the death of UAs, but this would be bad for video because capabilities are inconsistent across the web, and because APIs are incomplete or lie.&lt;p&gt;For example, the &amp;quot;canPlayType&amp;quot; API for whether a codec is supported returns &amp;quot;probably&amp;quot; or &amp;quot;maybe&amp;quot;. So we sometimes need to hardcode which browsers support which new codecs.&lt;p&gt;Also, there are several bugs in past and present versions of decoder implementations, which are only discovered though manual testing, or by observing quality of service metrics split by browser version (Firefox does not handle bad audio packets as well as Chrome, for example). In IE and old Edge, the video readyState would always be &amp;quot;4&amp;quot; after playback beings, even during buffering, which is a blatant violation of the spec Microsoft refused to fix (as stated in their bugtracker).&lt;p&gt;Browsers like Safari have subtly different event orders from the HTMLVideoElement which requires a burdensome workaround that us working in video just like to keep to Safari instead of poisoning other implementations.&lt;p&gt;A final fun quirk is that not all browsers gave accurate HTTP timing information until recently (notably, Safari &amp;lt; 14) which make download timing for the purpose of determining bandwidth very inaccurate. This is why Twitch only recently supported low-latency playback for Safari. There is no other way to ask &amp;quot;do you support accurate timing&amp;quot; other than for an engineer to test it and hardcode an exception.</text></comment>
<story><title>Version 100 in Chrome and Firefox</title><url>https://hacks.mozilla.org/2022/02/version-100-in-chrome-and-firefox/</url></story><parent_chain></parent_chain><comment><author>silvestrov</author><text>Please, not another hack of the user-agent string.&lt;p&gt;If sites break, let them break.</text></comment>