renderFrames only collects audio from the first tab, so short clips can be missing with concurrency > 1
Valutazione
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Idoneità per principianti
- 25/100
- Tipo di issue
- Bug
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Ferma
- Stack tecnologico
- react, typescript
- Ambito
- audio-video-rtc, backend
Direzione di ricerca
Start at renderFrames, where the issue says audio sources are read from pages[0]; inspect how pages render queued frames and where audioSources is returned. Reproduce with the provided two-frame composition at concurrency 2, then check that sources from all pages are included and duplicate keys collapse. A fix is already being pursued in linked pull request #27.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
After rendering, renderFrames reads window.__RENDIV_AUDIO_SOURCES__ from pages[0] only. Each tab has its own window, and an <Audio> only registers in the tab that rendered a frame where it was mounted. So if a clip only mounts on frames that other tabs rendered, it isn't collected and silently drops out of the mix.
Since every tab pulls frames from the same queue, each one ends up rendering roughly every Nth frame (N = concurrency). In practice that means it mostly hits clips whose <Sequence> is shorter than the concurrency. Longer clips almost always get mounted in the first tab at some point too.
Repro:
const TwoTabs = () => (
<>
<Fill style={{ background: '#123' }} />
<Sequence from={0} durationInFrames={1}><Audio src={staticFile('a.mp3')} /></Sequence>
<Sequence from={1} durationInFrames={1}><Audio src={staticFile('b.mp3')} /></Sequence>
</>
);
// <Composition id="TwoTabs" component={TwoTabs} durationInFrames={2} fps={30} width={320} height={180} />
With renderFrames({ ..., concurrency: 2 }), tab 1 renders frame 0 and tab 2 renders frame 1. On master (6d6aca2) the returned audioSources only has a.mp3.
Reading the map from every page and merging by key fixes it. The keys are already content-based, so duplicates collapse on their own. That's in #27.
- Lingua principale
- TypeScript
- Stelle
- 159
- Fork
- 32
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di thecodacus/rendiv
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
thecodacus/rendiv#17 ·
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
thecodacus/rendiv#16 ·
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
thecodacus/rendiv#15 ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 55/100
thecodacus/rendiv#24 ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 45/100
thecodacus/rendiv#23 ·
Tutte le issue di thecodacus/rendiv
Issue simili
-
normalizePath removes the Windows device namespace prefixForse già presa Una pull request collegata a questa issue è aperta o già unita. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
caprover/caprover-frontend#273 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
ai-driven-dev/framework#1147 ·
I maintainer di solito rispondono entro 1 giorno
-
agent-ui bug p2
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
cybersemics/em#6232 ·
I maintainer di solito rispondono entro 1 giorno