web/libav/probe: suppress fail warnings
This commit is contained in:
parent
d266dc3851
commit
cfbbe84bd4
1 changed files with 4 additions and 4 deletions
|
@ -25,14 +25,14 @@ async function probeSingleAudio(config: AudioEncoderConfig) {
|
||||||
return { supported };
|
return { supported };
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch(e) { console.warn('audio native probe fail', e) }
|
} catch(e) { /* console.warn('audio native probe fail', e) */ }
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const { supported } = await LibAVPolyfill.AudioEncoder.isConfigSupported(config);
|
const { supported } = await LibAVPolyfill.AudioEncoder.isConfigSupported(config);
|
||||||
if (supported) {
|
if (supported) {
|
||||||
return { supported, slow: true }
|
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 }
|
return { supported: false }
|
||||||
}
|
}
|
||||||
|
@ -45,14 +45,14 @@ async function probeSingleVideo(config: VideoEncoderConfig) {
|
||||||
return { supported };
|
return { supported };
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch(e) { console.warn('video native probe fail', e) }
|
} catch(e) { /* console.warn('video native probe fail', e) */ }
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const { supported } = await LibAVPolyfill.VideoEncoder.isConfigSupported(config);
|
const { supported } = await LibAVPolyfill.VideoEncoder.isConfigSupported(config);
|
||||||
if (supported) {
|
if (supported) {
|
||||||
return { supported, slow: true }
|
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 }
|
return { supported: false }
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue