`loop` not available on `<OffthreadVideo />`
Just-Moh-it opened this issue · comments
Not really a major one but someone who's using <Video />
would expect <OffthreadVideo />
to be a drop in replacement for <Video />
.
Was having issues with rendering not pausing for buffering to finish for <Video />
elements, resulting in the first frame being black. But it worked on <OffthreadVideo />
so tried replacing it throughout the app but had this type error of loop
missing from <OffthreadVideo />
mb, didn't look through docs: https://www.remotion.dev/docs/offthreadvideo#looping-a-video
It's not a bad idea anyway.
Problem is that if you drop in like a ProRes file, then we need to get the duration from somewhere else, maybe from the server using FFmpeg.
Probably at some point we make a proxy so we can call getVideoMetadata()
from the frontend if you are connected to a server (going into this direction now with #3760) and then we could conceivably implement it properly.