mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-24 23:51:20 -08:00
add autoOrientation
This commit is contained in:
1 parent
4539a46a82
commit
b292b769bd
5 files changed
+82
-5
No files matched your search
@@ -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]);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user