Add HW acceleration to unsupported message

This commit is contained in:
Vanilagy
2025-08-22 19:38:36 +02:00
parent 134a6f8f4e
commit 5a6528d8f5
+3 -2
View File
@@ -347,8 +347,9 @@ class VideoEncoderWrapper {
if (!support.supported) {
throw new Error(
`This specific encoder configuration (${encoderConfig.codec}, ${encoderConfig.bitrate} bps,`
+ ` ${encoderConfig.width}x${encoderConfig.height}) is not supported by this browser. Consider`
+ ` using another codec or changing your video parameters.`,
+ ` ${encoderConfig.width}x${encoderConfig.height}, hardware acceleration:`
+ ` ${encoderConfig.hardwareAcceleration ?? 'no-preference'}) is not supported by this browser.`
+ ` Consider using another codec or changing your video parameters.`,
);
}