You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When adding the Remotion Audio component within a Remotion Composition (here RemotionVideo.tsx) using the Vidstack player setup, the following error is encountered:
useMediaPlayback must be used inside a <BufferingContext>
Expected Behavior:
The Remotion Audio component should function without causing errors within the Vidstack player setup.
Steps To Reproduce:
Set up a new Vite React project:
pnpm create vite my-remotion-app --template react-ts
Create the RemotionVideo.tsx with the Remotion Audio component:
import{AbsoluteFill,Audio,useCurrentFrame}from"remotion";exportconstRemotionVideo: React.FC=()=>{constframe=useCurrentFrame();return(<AbsoluteFillstyle={{justifyContent: "center",alignItems: "center",fontSize: 100,backgroundColor: "white"}}>
The current frame is {frame}.
<Audiosrc="https://samplelib.com/lib/preview/mp3/sample-3s.mp3"/></AbsoluteFill>);};
Set up Vidstack player in App.tsx as follows (following docs):
Current Behavior:
When adding the Remotion
Audio
component within a Remotion Composition (hereRemotionVideo.tsx
) using the Vidstack player setup, the following error is encountered:Expected Behavior:
The Remotion
Audio
component should function without causing errors within the Vidstack player setup.Steps To Reproduce:
RemotionVideo.tsx
with the RemotionAudio
component:App.tsx
as follows (following docs):Environment:
@vidstack/react@next
(^1.12.11
)Anything Else?
BufferingProvider
? remotion-dev/remotion#4367The text was updated successfully, but these errors were encountered: