Skip to content

Commit 5fa20dd

Browse files
committed
fix: Fix disable stream when no manifest (#7497)
1 parent bed621e commit 5fa20dd

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/player.js

+4
Original file line numberDiff line numberDiff line change
@@ -7258,6 +7258,10 @@ shaka.Player = class extends shaka.util.FakeEventTarget {
72587258
return false;
72597259
}
72607260

7261+
if (!this.manifest_) {
7262+
return false;
7263+
}
7264+
72617265
// It only makes sense to disable a stream if we have an alternative else we
72627266
// end up disabling all variants.
72637267
const hasAltStream = this.manifest_.variants.some((variant) => {

0 commit comments

Comments
 (0)