Bug 230595 - Opus and Vorbis codecs aren't available on iPad.
Summary: Opus and Vorbis codecs aren't available on iPad.
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Media (show other bugs)
Version: Other
Hardware: iPhone / iPad Unspecified
: P2 Normal
Assignee: Jean-Yves Avenard [:jya]
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2021-09-21 21:21 PDT by Jean-Yves Avenard [:jya]
Modified: 2021-09-23 02:54 PDT (History)
10 users (show)

See Also:


Attachments
Patch (1.42 KB, patch)
2021-09-21 22:27 PDT, Jean-Yves Avenard [:jya]
ews-feeder: commit-queue-
Details | Formatted Diff | Diff
Patch (3.46 KB, patch)
2021-09-21 23:16 PDT, Jean-Yves Avenard [:jya]
no flags Details | Formatted Diff | Diff
Patch (10.21 KB, patch)
2021-09-22 01:09 PDT, Jean-Yves Avenard [:jya]
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jean-Yves Avenard [:jya] 2021-09-21 21:21:03 PDT
Opus and Vorbis are only available on Mac for some reasons:
`
#if !defined(ENABLE_VORBIS) && PLATFORM(MAC) && __MAC_OS_X_VERSION_MAX_ALLOWED >= 110300
#define ENABLE_VORBIS 1
#endif
`

We should allow them everywhere and let run-time detection performs its work
Comment 1 Radar WebKit Bug Importer 2021-09-21 21:21:54 PDT
<rdar://problem/83382734>
Comment 2 Jean-Yves Avenard [:jya] 2021-09-21 22:27:33 PDT
Created attachment 438921 [details]
Patch
Comment 3 Jean-Yves Avenard [:jya] 2021-09-21 23:16:23 PDT
Created attachment 438924 [details]
Patch

Restrict to iOS and Mac as some required headers aren't included on other platforms
Comment 4 Jean-Yves Avenard [:jya] 2021-09-22 01:09:10 PDT
Created attachment 438933 [details]
Patch
Comment 5 Eric Carlson 2021-09-22 08:35:39 PDT
Comment on attachment 438933 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=438933&action=review

> Source/WebCore/ChangeLog:12
> +        Covered by existing tests.

Do the existing tests run on iOS? If so won't the expectations be wrong?
Comment 6 Jean-Yves Avenard [:jya] 2021-09-23 02:02:10 PDT
(In reply to Eric Carlson from comment #5)
> Comment on attachment 438933 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=438933&action=review
> 
> > Source/WebCore/ChangeLog:12
> > +        Covered by existing tests.
> 
> Do the existing tests run on iOS? If so won't the expectations be wrong?

They do not, I opened bug 230670 to enable them
Comment 7 EWS 2021-09-23 02:54:29 PDT
Committed r282954 (242044@main): <https://commits.webkit.org/242044@main>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 438933 [details].