web/libav/probe: suppress fail warnings

This commit is contained in:
dumbmoron 2024-09-06 15:13:20 +00:00
parent d266dc3851
commit cfbbe84bd4
No known key found for this signature in database

View file

@ -25,14 +25,14 @@ async function probeSingleAudio(config: AudioEncoderConfig) {
return { supported };
}
}
} catch(e) { console.warn('audio native probe fail', e) }
} catch(e) { /* console.warn('audio native probe fail', e) */ }
try {
const { supported } = await LibAVPolyfill.AudioEncoder.isConfigSupported(config);
if (supported) {
return { supported, slow: true }
}
} catch(e) { console.warn('audio polyfill probe fail', e) }
} catch(e) { /* console.warn('audio polyfill probe fail', e) */ }
return { supported: false }
}
@ -45,14 +45,14 @@ async function probeSingleVideo(config: VideoEncoderConfig) {
return { supported };
}
}
} catch(e) { console.warn('video native probe fail', e) }
} catch(e) { /* console.warn('video native probe fail', e) */ }
try {
const { supported } = await LibAVPolyfill.VideoEncoder.isConfigSupported(config);
if (supported) {
return { supported, slow: true }
}
} catch(e) { console.warn('video polyfill probe fail', e) }
} catch(e) { /* console.warn('video polyfill probe fail', e) */ }
return { supported: false }
}