Skip to content

Commit b8a15cf

Browse files
committed
test(producer): cover nested sequential video render
1 parent 11a24b8 commit b8a15cf

8 files changed

Lines changed: 128 additions & 0 deletions

File tree

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"name": "Later nested template video stays visible",
3+
"description": "Two template-mounted hosts play sequentially, and each template owns a scene-local video with data-start=0 that reads its half of one generated source. Before the fix, producer capture evaluated the later video's start against root time without its host offset, hid it for the entire second host window, and rendered black instead of the generated green half.",
4+
"tags": ["video", "sub-composition", "regression"],
5+
"minPsnr": 25,
6+
"maxFrameFailures": 2,
7+
"minAudioCorrelation": 0,
8+
"maxAudioLagWindows": 1,
9+
"renderConfig": {
10+
"fps": 24,
11+
"workers": 1
12+
}
13+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
version https://git-lfs.github.com/spec/v1
2+
oid sha256:04e1e32b29828b8cbe7ba114ab66081eb5443359eed7e911cf0e2462044b7cd0
3+
size 2291
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
version https://git-lfs.github.com/spec/v1
2+
oid sha256:7e56506833244506267cbe6c8bdd971eb2f92fbf96a83ce18c7565c74ecbfcae
3+
size 2829
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<template id="first-template">
2+
<div
3+
data-composition-id="first-scene"
4+
data-width="160"
5+
data-height="90"
6+
data-no-timeline
7+
style="position: relative; width: 160px; height: 90px; overflow: hidden; background: #000"
8+
>
9+
<video
10+
id="first-video"
11+
class="clip"
12+
data-start="0"
13+
data-duration="1"
14+
data-media-start="0"
15+
data-track-index="0"
16+
src="../media/source.mp4"
17+
muted
18+
playsinline
19+
preload="auto"
20+
style="display: block; width: 160px; height: 90px; object-fit: cover"
21+
></video>
22+
</div>
23+
</template>
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<template id="later-template">
2+
<div
3+
data-composition-id="later-scene"
4+
data-width="160"
5+
data-height="90"
6+
data-no-timeline
7+
style="position: relative; width: 160px; height: 90px; overflow: hidden; background: #000"
8+
>
9+
<video
10+
id="later-video"
11+
class="clip"
12+
data-start="0"
13+
data-duration="1"
14+
data-media-start="1"
15+
data-track-index="0"
16+
src="../media/source.mp4"
17+
muted
18+
playsinline
19+
preload="auto"
20+
style="display: block; width: 160px; height: 90px; object-fit: cover"
21+
></video>
22+
</div>
23+
</template>
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
<!doctype html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<meta name="viewport" content="width=160, height=90" />
6+
<style>
7+
html,
8+
body,
9+
#root {
10+
width: 160px;
11+
height: 90px;
12+
margin: 0;
13+
overflow: hidden;
14+
background: #000;
15+
}
16+
17+
.scene {
18+
position: absolute;
19+
inset: 0;
20+
background: #000;
21+
}
22+
</style>
23+
</head>
24+
<body>
25+
<div
26+
id="root"
27+
data-composition-id="main"
28+
data-start="0"
29+
data-duration="2"
30+
data-width="160"
31+
data-height="90"
32+
data-no-timeline
33+
>
34+
<div
35+
id="first-host"
36+
class="scene"
37+
data-composition-id="first-scene"
38+
data-composition-src="compositions/first.html"
39+
data-start="0"
40+
data-duration="1"
41+
data-track-index="0"
42+
data-no-timeline
43+
></div>
44+
<div
45+
id="later-host"
46+
class="scene"
47+
data-composition-id="later-scene"
48+
data-composition-src="compositions/later.html"
49+
data-start="1"
50+
data-duration="1"
51+
data-track-index="1"
52+
data-no-timeline
53+
></div>
54+
</div>
55+
<script>
56+
window.__timelines = window.__timelines || {};
57+
</script>
58+
</body>
59+
</html>
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
version https://git-lfs.github.com/spec/v1
2+
oid sha256:5b3552325f6a25ea3859be60a6bef131878066aca48d8409e4182f539d144e5f
3+
size 2750

‎packages/producer/tests/shard-schedule.json‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
"distributedShardCount": 1,
1414
"timings": {
1515
"animejs-adapter": 17,
16+
"nested-sequential-video-local-start": 8,
1617
"audio-mux-parity": 32,
1718
"chat": 54,
1819
"css-spinner-render-compat": 15,

0 commit comments

Comments
 (0)