1
0
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:
André 2023-07-04 13:03:33 +02:00 committed by GitHub
parent e06465f9cb
commit b34cb2c207
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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));