mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-24 23:13:18 -08:00
feat(auto-thumbnail): [PKG-AUTO-THUMB-08] add compatible runtime type entry
This commit is contained in:
1 parent
7be628a983
commit
c4f5dcf17f
27 files changed
+2005
-40
No files matched your search
@@ -1,10 +1,11 @@
|
||||
import type { Result } from '../types/runtime-api'
|
||||
import type { Cleanup, ThumbnailHost, ThumbnailOptions } from './types'
|
||||
import extract from './extraction'
|
||||
import { readOptions } from './options'
|
||||
import createSession, { cleanupAll } from './session'
|
||||
|
||||
export default function artplayerPluginAutoThumbnail(option: ThumbnailOptions) {
|
||||
return async (art: ThumbnailHost) => {
|
||||
return async (art: ThumbnailHost): Promise<Result> => {
|
||||
const report = (error: unknown) => console.warn('ArtPlayer auto-thumbnail failed:', error)
|
||||
const session = createSession((config) => {
|
||||
art.thumbnails = config
|
||||
|
||||
Reference in new issue
Block a user