Skip to content

Commit

Permalink
test: fix Safari test failures (#8300)
Browse files Browse the repository at this point in the history
  • Loading branch information
misteroneill committed Jun 1, 2023
1 parent cb8b329 commit 9e5dd81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/player.js
Original file line number Diff line number Diff line change
Expand Up @@ -3548,7 +3548,7 @@ class Player extends Component {
load() {
// Workaround to use the load method with the VHS.
// Does not cover the case when the load method is called directly from the mediaElement.
if (this.tech_.vhs) {
if (this.tech_ && this.tech_.vhs) {
this.src(this.currentSource());

return;
Expand Down

0 comments on commit 9e5dd81

Please sign in to comment.