mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-24 06:31:20 -08:00
11 lines
503 B
TypeScript
11 lines
503 B
TypeScript
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 })
|