feat(html): add hotkeys (#1239)

This commit is contained in:
rahim
2026-04-07 01:08:16 -07:00
committed by GitHub
parent 627ea204fc
commit d9d893b726
19 changed files with 294 additions and 98 deletions
+4 -1
View File
@@ -1,5 +1,6 @@
import type { AnyPlayerStore, Media, MediaContainer, PlayerStore } from '@videojs/core/dom';
import { type Context, createContext } from '@videojs/element/context';
import type { ReactiveControllerHost } from '@videojs/element';
import { type Context, type ContextConsumer, createContext } from '@videojs/element/context';
// ----------------------------------------
// Player Context
@@ -49,6 +50,8 @@ export interface ContainerContextValue {
export type ContainerContext = Context<typeof CONTAINER_CONTEXT_KEY, ContainerContextValue>;
export type ContainerContextConsumer = ContextConsumer<ContainerContext, ReactiveControllerHost & HTMLElement>;
export const containerContext = createContext<ContainerContextValue, typeof CONTAINER_CONTEXT_KEY>(
CONTAINER_CONTEXT_KEY
);