When testing for ability to play codec, do it muted so that it succeeds on reload

This commit is contained in:
Isaac Connor
2026-01-06 16:32:06 -05:00
parent caf54f6535
commit 5c2d89bc82

View File

@@ -1491,6 +1491,7 @@ function canPlayCodec(filename) {
else {
console.log('matches didnt match'+matches[1]);
}
video.muted = true;
const can = video.canPlayType('video/mp4; codecs="'+matches[1]+'"');
if (can == "probably") {