mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-27 17:51:20 -08:00
add artplayer-plugin-control
This commit is contained in:
1 parent
aafa046a9f
commit
054ee3f3f6
26 files changed
+42
-35
No files matched your search
@@ -1,4 +1,3 @@
|
||||
import screenfull from '../libs/screenfull';
|
||||
import { append, tooltip, setStyle } from '../utils';
|
||||
|
||||
export default function fullscreen(option) {
|
||||
@@ -16,8 +15,8 @@ export default function fullscreen(option) {
|
||||
art.fullscreen = !art.fullscreen;
|
||||
});
|
||||
|
||||
screenfull.on('change', () => {
|
||||
if (art.fullscreen) {
|
||||
art.on('fullscreen', (state) => {
|
||||
if (state) {
|
||||
tooltip($control, i18n.get('Exit Fullscreen'));
|
||||
setStyle($fullscreenOn, 'display', 'none');
|
||||
setStyle($fullscreenOff, 'display', 'inline-flex');
|
||||
|
||||
Reference in new issue
Block a user