Open 2blo opened 1 year ago
after
onready triggered twice onlone bfx.old const beforeAudioActive = useRef<boolean>(true); sync good, false makes it worse (yes, the video). sometimes the videos dont start
const beforeAudioActive = useRef<boolean>(true);
false
Originally posted by @2blo in https://github.com/2blo/before-effects/issues/16#issuecomment-1367425154
setTo(0.05)
switch audio track
useRef
function Video() { const playerRef = useRef(null); if (playerRef.current === null) { playerRef.current = new VideoPlayer(); } ....
Perhaps all the before/after-status refs should just be variables: should not persist multiple renders
before/after-status
iframe-loading: "lazy"
opts={{ origin: "http://localhost:3000", host: "https://www.youtube.com", playerVars: { showinfo: 1, modestbranding: true, controls: 1, loop: 1, mute: 0, origin: "http://localhost:3000", host: "https://www.youtube.com", }, }}
doneAfter is not part of so snippet, allows start in 1 click
doneAfter
after last commit on #38 I noticed an old sync issue:
occurred even when undoing ts warning changes
after
makes it start laterOriginally posted by @2blo in https://github.com/2blo/before-effects/issues/16#issuecomment-1367425154
setTo(0.05)
switch audio track
also desyncs videosuseRef
for rendering, unpredictable, except init" - react docsPerhaps all the
before/after-status
refs should just be variables: should not persist multiple rendersiframe-loading: "lazy"
?doneAfter
is not part of so snippet, allows start in 1 click