import type { AnyPlayerStore, PlayerStore } from '@videojs/core/dom'; import { type Context, createContext } from '@videojs/element/context'; export const PLAYER_CONTEXT_KEY = Symbol('@videojs/player'); export type PlayerContextValue = Store; export type PlayerContext = Context< typeof PLAYER_CONTEXT_KEY, PlayerContextValue >; export const playerContext = createContext(PLAYER_CONTEXT_KEY);