Skip to content

Commit

Permalink
fix: video autoplay issue
Browse files Browse the repository at this point in the history
  • Loading branch information
tsukumijima committed Sep 14, 2023
1 parent bda61e7 commit 243f804
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dist/DPlayer.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/DPlayer.min.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/d.ts/player.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions src/ts/player.ts
Original file line number Diff line number Diff line change
Expand Up @@ -986,6 +986,9 @@ class DPlayer {
if (!this.options.live) {
this.seek(this.prevVideoCurrentTime);
}
if (!paused) {
this.video.play();
}
if (this.options.lang === 'ja' || this.options.lang === 'ja-jp') {
this.notice(`画質を ${this.quality.name} に切り替えています…`, -1);
} else {
Expand Down

0 comments on commit 243f804

Please sign in to comment.