add mobile playsInline

This commit is contained in:
Harvey committed 2022-03-23 16:44:01 +08:00
1 parent cc39bed24d
commit d43057c8af
2 files changed
+6 -1

No files matched your search

+5
View File
@@ -35,6 +35,11 @@ export default class Mobile {
$video.autoplay = option.autoplay;
}
if (option.playsInline) {
$video.playsInline = true;
$video['webkit-playsinline'] = true;
}
const typeName = option.type || getExt(option.url);
const typeCallback = option.customType[typeName];
if (typeName && typeCallback) {