Skip to content

Take control over your live stream video by running it yourself. Streaming + chat out of the box.

fail silently when no codces are found (#3142)

janWilejan340d402b83b3
diff --git a/web/components/video/metrics/playback.js b/web/components/video/metrics/playback.js
index bd6338fa40..65481e5109 100644
--- a/web/components/video/metrics/playback.js
+++ b/web/components/video/metrics/playback.js
@@ -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);
}