mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-30 20:21:20 -08:00
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:
1 parent
f1fcbd75fe
commit
bd071b2d63
4 files changed
+123
-67
No files matched your search
@@ -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'
|
||||
|
||||
Reference in new issue
Block a user