Bug 234840 - Audio canPlayType() reports false negative for PCM WAV
Summary: Audio canPlayType() reports false negative for PCM WAV
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Media (show other bugs)
Version: Safari 15
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2022-01-04 05:49 PST by Ashley Gullen
Modified: 2022-05-25 11:27 PDT (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ashley Gullen 2022-01-04 05:49:34 PST
(Forked from issue 229799)

Repro URL: https://downloads.scirra.com/labs/audioCodecTests/

In Safari 15.2, canPlayType() indicates PCM WAV ("audio/wav;codecs=1") is not supported by returning an empty string. However when passing a PCM WAV file to both an <audio> element and Web Audio, it correctly decodes and plays the file.

Observed result: canPlayType() returns empty string
Expected result: canPlayType() to return "maybe" or "probably"
Comment 1 Radar WebKit Bug Importer 2022-01-04 17:05:56 PST
<rdar://problem/87122702>
Comment 2 Austin Case 2022-05-25 11:27:28 PDT
Hey all, this is becoming a big challenge and causing us to have to recommend using any other browser. But Safari has the best video codec support with HEVC and PRORES -- commonly with wav/pcm audio... thus our application can't trust if it can play the files or not.