添加muted功能

This commit is contained in:
Harvey Zack committed 2018-11-22 10:42:16 +08:00
1 parent fa18560b2e
commit 3cd470a83c
10 files changed
+112 -70

No files matched your search

@@ -9,6 +9,10 @@ export default function attrInit(art, player) {
$video[key] = option.moreVideoAttr[key];
});
if (option.muted) {
$video.muted = option.muted;
}
if (option.volume) {
$video.volume = clamp(option.volume, 0, 1);
}