mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-27 09:41:20 -08:00
bugfix
This commit is contained in:
1 parent
4fbb3442e0
commit
650d1abef3
6 files changed
+26
-4
No files matched your search
@@ -3,6 +3,10 @@ import { setStyle } from '../utils';
|
||||
export default function resizeMix(art, player) {
|
||||
const { refs: { $container, $player, $video } } = art;
|
||||
|
||||
Object.defineProperty(player, 'autoSizeState', {
|
||||
get: () => $container.classList.contains('artplayer-auto-size')
|
||||
});
|
||||
|
||||
Object.defineProperty(player, 'autoSize', {
|
||||
value: () => {
|
||||
const { videoWidth, videoHeight } = $video;
|
||||
|
||||
Reference in new issue
Block a user