Skip to content

Commit

Permalink
WPT webcodecs/videoFrame-canvasImageSource.html is failing a test due…
Browse files Browse the repository at this point in the history
… to AV1 usage

https://bugs.webkit.org/show_bug.cgi?id=258809
rdar://111685981

Reviewed by Eric Carlson.

The failing test is using AV.1 video streaming.
Marking it as optional based on whether media capabilities API tells us whether AV.1 video streaming is supported.

* LayoutTests/imported/w3c/web-platform-tests/webcodecs/videoFrame-canvasImageSource-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/webcodecs/videoFrame-canvasImageSource.html:

Canonical link: https://commits.webkit.org/267282@main
  • Loading branch information
youennf committed Aug 25, 2023
1 parent ac15c39 commit 339c861
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@


FAIL <video> and VideoFrame constructed VideoFrame assert_unreached: Reached unreachable code
NOTRUN <video> and VideoFrame constructed VideoFrame AV.1 file streaming unsupported
PASS CSSImageValue constructed VideoFrame
PASS Image element constructed VideoFrame
PASS SVGImageElement constructed VideoFrame
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,21 @@
frame.close();
t.done();
}));
video.src = 'four-colors.mp4';

const mediaConfig = {
type: 'file',
video: {
contentType: 'video/mp4; codecs="av01.0.04M.08"',
width: 320,
height: 240,
bitrate: 1000000,
framerate: '30'
}
};
navigator.mediaCapabilities.decodingInfo(mediaConfig).then(t.step_func(result => {
assert_implements_optional(result.supported, "AV.1 file streaming unsupported");
video.src = 'four-colors.mp4';
}));
}, '<video> and VideoFrame constructed VideoFrame');

test(t => {
Expand Down

0 comments on commit 339c861

Please sign in to comment.