mirror of
https://github.com/videojs/video.js.git
synced 2025-01-02 06:32:07 +02:00
fix(play-toggle): missing svg play icon (#8337)
Svg play icon is missing when player is initialized with class `vjs-has-started`. - add `setIcon` to the `play-toggle` component constructor Fixes #8336
This commit is contained in:
parent
e06465f9cb
commit
b34cb2c207
@ -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));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user