[Cocoa,HDR] HLS streams with HDR variants will not select HDR.
<rdar://problem/67438626>
Created attachment 408047 [details] Patch
Comment on attachment 408047 [details] Patch Regression testing?
(In reply to Darin Adler from comment #3) > Comment on attachment 408047 [details] > Patch > > Regression testing? It’s hard; I don’t know that we can write a consistent regression test that isn’t flakey here. For one, it’s very hard to determine what variant HLS chooses; AVFoundation goes out of its way to make that difficult. For two, anything we do which _could_ be detectable will perturb HLS’s selection logic. E.g., giving the HDR and SDR variants different sizes would make the selection detectable, but might lead HLS to choose among the smaller or larger variant, rather than the HDR or SDR one. For three, HLS may only switch up to HDR _eventually_, not initially, so the test may end up taking >10s to run, which on the bots means it would be a flakey timeout. I’ll see what I can do; perhaps a stream with very short segment times, like 0.5s each, may make the switching happen quicker.
Created attachment 408293 [details] Patch for landing
Created attachment 408549 [details] Patch for landing
Created attachment 408555 [details] Patch for Landing
Tools/Scripts/svn-apply failed to apply attachment 408555 [details] to trunk. Please resolve the conflicts and upload a new patch.
Created attachment 408749 [details] Patch for Landing
Committed r267057: <https://trac.webkit.org/changeset/267057> All reviewed patches have been landed. Closing bug and clearing flags on attachment 408749 [details].