Browse Source

fail silently when no codces are found (#3142)

Co-authored-by: janWilejan <>
pull/3145/head
janWilejan 3 years ago committed by GitHub
parent
commit
185123dab2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      web/components/video/metrics/playback.js

2
web/components/video/metrics/playback.js

@ -102,7 +102,7 @@ class PlaybackMetrics { @@ -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);
}

Loading…
Cancel
Save