Skip to content

Commit

Permalink
fix(play-toggle): missing svg play icon (#8337)
Browse files Browse the repository at this point in the history
Svg play icon is missing when player is initialized with class `vjs-has-started`.

- add `setIcon` to the `play-toggle` component constructor

Fixes #8336
  • Loading branch information
amtins authored Jul 4, 2023
1 parent e06465f commit b34cb2c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/js/control-bar/play-toggle.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ class PlayToggle extends Button {
// show or hide replay icon
options.replay = options.replay === undefined || options.replay;

this.setIcon('play');

this.on(player, 'play', (e) => this.handlePlay(e));
this.on(player, 'pause', (e) => this.handlePause(e));

Expand Down

0 comments on commit b34cb2c

Please sign in to comment.