Bug 264856 - [MSE] Introduce PlatformMediaError as a way to return failure
Summary: [MSE] Introduce PlatformMediaError as a way to return failure
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Media (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Jean-Yves Avenard [:jya]
URL:
Keywords: InRadar
Depends on:
Blocks: 264134
  Show dependency treegraph
 
Reported: 2023-11-14 18:50 PST by Jean-Yves Avenard [:jya]
Modified: 2023-11-17 00:00 PST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jean-Yves Avenard [:jya] 2023-11-14 18:50:24 PST
subtask of bug 264134

Right now we have multiple ways of returning errors, often declaring a custom enum for a given method.

Streamlining error handling to return a single object would simplify some code flow.

For now, it will be used by MSE objects only.
Comment 1 Radar WebKit Bug Importer 2023-11-14 18:50:48 PST
<rdar://problem/118431377>
Comment 2 Jean-Yves Avenard [:jya] 2023-11-14 19:11:11 PST
Pull request: https://github.com/WebKit/WebKit/pull/20518
Comment 3 EWS 2023-11-17 00:00:22 PST
Committed 270869@main (e209781a701e): <https://commits.webkit.org/270869@main>

Reviewed commits have been landed. Closing PR #20518 and removing active labels.