Bug 264856

Summary: [MSE] Introduce PlatformMediaError as a way to return failure
Product: WebKit Reporter: Jean-Yves Avenard [:jya] <jean-yves.avenard>
Component: MediaAssignee: Jean-Yves Avenard [:jya] <jean-yves.avenard>
Status: RESOLVED FIXED    
Severity: Normal CC: webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 264134    

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.