MCPcopy
hub / github.com/surmon-china/videojs-player / CreatePlayerStateOptions

Interface CreatePlayerStateOptions

player/state.ts:155–158  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

153}
154
155export interface CreatePlayerStateOptions {
156 onInit: (state: PlayerState) => void
157 onUpdate: <K extends keyof PlayerState>(key: K, value: PlayerState[K], state: PlayerState) => void
158}
159
160export const createPlayerState = (player: Player, options: CreatePlayerStateOptions) => {
161 const keys = Object.keys(StateConfig) as Array<keyof typeof StateConfig>

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected