Bug 218388
| Summary: | Add feature detection support for FLAC in HLS | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Jeremy Karlsson <jeremy.karlsson> |
| Component: | Media | Assignee: | 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 | ||
Jeremy Karlsson
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"')';
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/70916803>
Jeremy Karlsson
Sorry, Safari on Catalina* [returns the same values when running these methods;].
Jeremy Karlsson
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.