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 >; /** * The default player context instance for consuming the player store in controllers. * * @public */ export const playerContext = createContext(PLAYER_CONTEXT_KEY);