Bug 218388

Summary: Add feature detection support for FLAC in HLS
Product: WebKit Reporter: Jeremy Karlsson <jeremy.karlsson>
Component: MediaAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Critical CC: eric.carlson, jer.noble, smoley, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: Safari 14   
Hardware: Mac   
OS: Other   

Description Jeremy Karlsson 2020-10-30 09:23:05 PDT
With the new support for FLAC in HLS we intend to finally get FLAC support out on Safari at TIDAL. I have however not find a way to feature detetect the capabilities to know if I can play FLAC or not.

FLAC in HLS only works in Safari 14 on Big Sur. But Safari on El Capitan returns the same values when running these methods;


document.createElement('video').canPlayType('audio/mp4; codecs="flac"');
document.createElement('video').canPlayType('application/vnd.apple.mpegurl; codecs="flac"');
window.WebKitMediaKeys.isTypeSupported('com.apple.fps.1_0', 'video/mp4; codec="flac"')';
Comment 1 Radar WebKit Bug Importer 2020-10-31 09:46:18 PDT
<rdar://problem/70916803>
Comment 2 Jeremy Karlsson 2020-11-30 01:34:21 PST
Sorry, Safari on Catalina* [returns the same values when running these methods;].
Comment 3 Jeremy Karlsson 2020-12-10 01:17:25 PST
Another problem here is that Safari on both Catalina and Big Sur have the same user agent string, so that cannot be used to hack around the fact that there is no feature detection for this.