Guard against browsers not running VHS

This commit is contained in:
Gabe Kangas
2022-03-26 18:34:57 -07:00
parent cd4f19108a
commit 44afc9c1ea
2 changed files with 12 additions and 2 deletions

View File

@@ -63,6 +63,10 @@ class LatencyCompensator {
const tech = this.player.tech({ IWillNotUseThisInPlugins: true });
if (!tech || !tech.vhs) {
return;
}
try {
// Check the player buffers to make sure there's enough playable content
// that we can safely play.