mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-26 17:01:20 -08:00
refactor(chromecast): [PKG-CAST-03] isolate SDK and player lifecycles
This commit is contained in:
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 })
|
||||
Reference in new issue
Block a user