fail silently when no codces are found (#3142)

Co-authored-by: janWilejan <>
This commit is contained in:
janWilejan 2023-07-06 04:41:50 +00:00 committed by GitHub
parent f2d9d407c3
commit 185123dab2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -102,7 +102,7 @@ class PlaybackMetrics {
const tech = this.player.tech({ IWillNotUseThisInPlugins: true });
this.supportsDetailedMetrics = !!tech;
tech.on('usage', e => {
tech?.on('usage', e => {
if (e.name === 'vhs-unknown-waiting') {
this.setIsBuffering(true);
}