Skip to content

Commit

Permalink
add mobile controls
Browse files Browse the repository at this point in the history
  • Loading branch information
zhw2590582 committed Nov 8, 2022
1 parent aef5083 commit aab4a1c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion docs/uncompiled/artplayer/index.js

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

2 changes: 1 addition & 1 deletion docs/uncompiled/artplayer/index.js.map

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions packages/artplayer/src/mobile.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ export default class Mobile {
$video[key] = option.moreVideoAttr[key];
});

$video.controls = true;

if (option.muted) {
$video.muted = option.muted;
}
Expand Down

0 comments on commit aab4a1c

Please sign in to comment.