Skip to content

🎥 Make videos programmatically with React

export media from Internals

Shankhadeep Dey2f2edf6f35b0
diff --git a/packages/core/src/audio/AudioForDevelopment.tsx b/packages/core/src/audio/AudioForDevelopment.tsx
index 4eaea7e398..1ed9761364 100644
--- a/packages/core/src/audio/AudioForDevelopment.tsx
+++ b/packages/core/src/audio/AudioForDevelopment.tsx
@@ -39,7 +39,7 @@ const AudioForDevelopmentForwardRefFunction: React.ForwardRefRenderFunction<
});
useImperativeHandle(ref, () => {
- return audioRef.current as HTMLVideoElement;
+ return audioRef.current as HTMLAudioElement;
});
return <audio ref={audioRef} {...nativeProps} />;
diff --git a/packages/core/src/internals.ts b/packages/core/src/internals.ts
index 8763232e6c..e0412a65d6 100644
--- a/packages/core/src/internals.ts
+++ b/packages/core/src/internals.ts
@@ -76,6 +76,12 @@ import {truthy} from './truthy';
import {useLazyComponent} from './use-lazy-component';
import {useUnsafeVideoConfig} from './use-unsafe-video-config';
import {useVideo} from './use-video';
+import {
+ MediaVolumeContext,
+ MediaVolumeContextValue,
+ SetMediaVolumeContext,
+ SetMediaVolumeContextValue,
+} from './volume-position-state';
import {
RemotionContextProvider,
useRemotionContexts,
@@ -133,6 +139,8 @@ export const Internals = {
ENV_VARIABLES_LOCAL_STORAGE_KEY,
getDotEnvLocation,
getServerPort,
+ MediaVolumeContext,
+ SetMediaVolumeContext,
};
export type {
@@ -147,4 +155,6 @@ export type {
SetTimelineContextValue,
CompProps,
CompositionManagerContext,
+ MediaVolumeContextValue,
+ SetMediaVolumeContextValue,
};