mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-27 09:41:20 -08:00
add mobile playsInline
This commit is contained in:
1 parent
cc39bed24d
commit
d43057c8af
2 files changed
+6
-1
No files matched your search
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user