mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-27 09:41:20 -08:00
refactor(ambilight): [PKG-AMBILIGHT-03] split typed lifecycle and recover native canvas sampling
This commit is contained in:
1 parent
43f0e9a8c6
commit
6caee44dbf
25 files changed
+1680
-306
No files matched your search
@@ -2,6 +2,13 @@
|
||||
|
||||
ambilight plugin for ArtPlayer
|
||||
|
||||
`start()` and `stop()` are synchronous. The plugin starts on the player's `ready`
|
||||
event; `stop()` retains its last colors. Destroying the player removes the plugin's
|
||||
grid and frame loop, and previously retained methods then do nothing. Canvas read
|
||||
failures are skipped and retried, allowing a later readable source to recover.
|
||||
|
||||
Internal modules and compatibility tests are documented in [ARCHITECTURE.md](ARCHITECTURE.md).
|
||||
|
||||
## Demo
|
||||
|
||||
[https://artplayer.org](https://artplayer.org/?libs=./uncompiled/artplayer-plugin-ambilight/index.js&example=ambilight)
|
||||
|
||||
Reference in new issue
Block a user