refactor(chromecast): [PKG-CAST-03] isolate SDK and player lifecycles

This commit is contained in:
Harvey Zhao committed 2026-09-13 17:13:35 +08:00
1 parent 87cfcf5a6c
commit b0cfbfe3a0
26 files changed
+2503 -551

No files matched your search

@@ -0,0 +1,10 @@
import type Artplayer from 'artplayer'
import type { ChromecastOptions } from './types'
import { createController } from './controller'
export default function artplayerPluginChromecast(option: ChromecastOptions) {
return async (art: Artplayer) => createController(art, option)
}
// The 1.0 CommonJS namespace exposed .default; the current root exports a function.
Object.defineProperty(artplayerPluginChromecast, 'default', { value: artplayerPluginChromecast, writable: true, configurable: true })