mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-22 05:11:20 -08:00
add mobile controls
This commit is contained in:
1 parent
aef5083fcb
commit
aab4a1caaf
3 files changed
+5
-2
No files matched your search
@@ -248,7 +248,7 @@ class Artplayer extends (0, _emitterDefault.default) {
|
||||
return "development";
|
||||
}
|
||||
static get build() {
|
||||
return "2022-11-08 08:16:00";
|
||||
return "2022-11-08 20:24:10";
|
||||
}
|
||||
static get config() {
|
||||
return 0, _configDefault.default;
|
||||
@@ -5218,6 +5218,7 @@ class Mobile {
|
||||
Object.keys(option.moreVideoAttr).forEach((key)=>{
|
||||
$video[key] = option.moreVideoAttr[key];
|
||||
});
|
||||
$video.controls = true;
|
||||
if (option.muted) $video.muted = option.muted;
|
||||
if (option.volume) $video.volume = (0, _utils.clamp)(option.volume, 0, 1);
|
||||
if (option.poster) $video.poster = option.poster;
|
||||
|
||||
Reference in new issue
Block a user