feat: enhance autoOrientation plugin for better fullscreen handling

- Refactored rotation logic for web fullscreen to use a dedicated function.
- Added checks to prevent race conditions when applying rotation.
- Improved handling of native fullscreen orientation locking.
- Simplified class management for orientation states.
- Updated state retrieval to use constants for class names.
This commit is contained in:
Harvey Zack committed 2025-08-11 23:31:54 +08:00
1 parent f1fcbd75fe
commit bd071b2d63
4 files changed
+123 -67

No files matched your search

+1
View File
@@ -8,6 +8,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
- 移除 `svg` 默认的 `fill` 颜色值
- 优化 `artplayer.d.ts`, 现在可以直接导入 `Option`
- 优化 `autoOrientation` 逻辑
```ts
import type { Option } from 'artplayer'