8000 fix(play-toggle): missing svg play icon (#8337) · videojs/video.js@b34cb2c · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Commit b34cb2c

Browse files
authored
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
1 parent e06465f commit b34cb2c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/js/control-bar/play-toggle.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ class PlayToggle extends Button {
2727
// show or hide replay icon
2828
options.replay = options.replay === undefined || options.replay;
2929

30+
this.setIcon('play');
31+
3032
this.on(player, 'play', (e) => this.handlePlay(e));
3133
this.on(player, 'pause', (e) => this.handlePause(e));
3234

0 commit comments

Comments
 (0)
0