add autoOrientation

This commit is contained in:
Harvey authored and Harvey Zack committed 2022-04-26 17:23:42 +08:00
1 parent 4539a46a82
commit b292b769bd
5 files changed
+82 -5

No files matched your search

+5
View File
@@ -1,5 +1,6 @@
import { errorHandle, isMobile, has, def } from '../utils';
import miniProgressBar from './miniProgressBar';
import autoOrientation from './autoOrientation';
import autoPlayback from './autoPlayback';
import lock from './lock';
@@ -22,6 +23,10 @@ export default class Plugins {
this.add(autoPlayback);
}
if (isMobile) {
this.add(autoOrientation);
}
for (let index = 0; index < option.plugins.length; index++) {
this.add(option.plugins[index]);
}