Bug 242854 - WebM file fail to play
Summary: WebM file fail to play
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Media (show other bugs)
Version: Other
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Jean-Yves Avenard [:jya]
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2022-07-18 04:45 PDT by Jean-Yves Avenard [:jya]
Modified: 2022-09-07 02:32 PDT (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] 2022-07-18 04:45:50 PDT
STR:

1- Open https://registry.khronos.org/webgl/sdk/tests/resources/red-green.webmvp8.webm

Actual: A media error is produced.
Expected: Video plays.

The video contains an empty vorbis track, this causes the AVFObjC player to later fail as if it finds a track that is not playbable to be a fatal error (failure in MediaPlayerPrivateAVFoundationObjC::trackIsPlayable)
Comment 1 Radar WebKit Bug Importer 2022-07-18 04:46:07 PDT
<rdar://problem/97190939>
Comment 2 Jean-Yves Avenard [:jya] 2022-07-18 04:55:26 PDT
In this particular case, we could make the track be ignored by the MediaFormatReader if a track is disabled because it contains no data.

However, this begs the question: should a file fail to play when a given track is invalid or should it be just ignored?
Comment 3 Jean-Yves Avenard [:jya] 2022-07-19 02:54:17 PDT
Pull request: https://github.com/WebKit/WebKit/pull/2538
Comment 4 EWS 2022-09-07 02:31:58 PDT
Committed 254219@main (af6020b7b7f9): <https://commits.webkit.org/254219@main>

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