mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-27 09:41:20 -08:00
fix(auto-thumbnail): [PKG-AUTO-THUMB-13] ignore registration after destroy
This commit is contained in:
1 parent
9ba3c82f99
commit
876fa4c328
22 files changed
+4084
-11
No files matched your search
@@ -34,6 +34,9 @@ The registrar has type `(art: Artplayer) => Promise<Result>`. It resolves with
|
||||
`{ name: 'artplayerPluginAutoThumbnail' }` after subscribing to player events,
|
||||
before extraction completes. Generated sheets arrive progressively through the
|
||||
player's thumbnails configuration. Awaiting registration does not wait for them.
|
||||
If an application invokes a retained registrar after the player is destroyed,
|
||||
it resolves with the same name without subscribing or allocating a decoder.
|
||||
This does not override the core's own `plugins.add()` destruction checks.
|
||||
The options object is required; use `{}` for defaults. `height` is accepted by
|
||||
the runtime type for historical callers but remains ignored: the video aspect
|
||||
ratio determines sheet height. Numeric strings retain their old JavaScript
|
||||
|
||||
Reference in new issue
Block a user