MCPcopy Index your code
hub / github.com/vidstack/player / useMedia

Function useMedia

packages/vidstack/src/player/core/api/context.ts:45–47  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

43export const mediaContext = createContext<MediaContext>();
44
45export function useMedia(): MediaContext {
46 return useContext(mediaContext);
47}

Callers 15

constructorMethod · 0.90
onConnectMethod · 0.90
onAttachMethod · 0.90
onAttachMethod · 0.90
onConnectMethod · 0.90
constructorMethod · 0.90
onAttachMethod · 0.90
constructorMethod · 0.90
onAttachMethod · 0.90
constructorMethod · 0.90
onAttachMethod · 0.90
onAttachMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected