mirror of
https://github.com/zoriya/v10.git
synced 2026-08-16 02:45:09 +00:00
feat(html): add hotkeys (#1239)
This commit is contained in:
@@ -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
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user