Skip to content

Commit

Permalink
fix queryBeforeStart in pbc
Browse files Browse the repository at this point in the history
  • Loading branch information
adrums86 committed Aug 28, 2023
1 parent fa5f7dc commit bebb5f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/playlist-controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -2076,7 +2076,7 @@ export class PlaylistController extends videojs.EventTarget {
this.contentSteeringController_.on('content-steering', this.excludeThenChangePathway_.bind(this));
// Do this at startup only, after that the steering requests are managed by the Content Steering class.
this.tech_.one('canplay', () => {
if (!main.contentSteering.queryBeforeStart) {
if (main.contentSteering && !main.contentSteering.queryBeforeStart) {
this.contentSteeringController_.requestContentSteeringManifest();
}
});
Expand Down

0 comments on commit bebb5f1

Please sign in to comment.