Source code
Revision control
Copy as Markdown
Other Tools
Test Info: Warnings
- This test has a WPT meta file that expects 1 subtest issues.
- This WPT test may be referenced by the following Test IDs:
- /webcodecs/video-encoder-content-hint.https.any.html - WPT Dashboard Interop Dashboard
- /webcodecs/video-encoder-content-hint.https.any.worker.html - WPT Dashboard Interop Dashboard
// META: global=window,dedicatedworker
promise_test(async t => {
const config = {
codec: 'vp8',
width: 1280,
height: 720,
bitrate: 5000000,
bitrateMode: 'constant',
framerate: 25,
latencyMode: 'realtime',
contentHint: 'text',
};
let support = await VideoEncoder.isConfigSupported(config);
assert_equals(support.supported, true);
let new_config = support.config;
assert_equals(new_config.codec, config.codec);
assert_equals(new_config.contentHint, 'text');
}, 'Test that contentHint is recognized by VideoEncoder');