Bug 218388 - Add feature detection support for FLAC in HLS
Summary: Add feature detection support for FLAC in HLS
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Media (show other bugs)
Version: Safari 14
Hardware: Mac Other
: P2 Critical
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2020-10-30 09:23 PDT by Jeremy Karlsson
Modified: 2020-12-10 01:17 PST (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.