Repository navigation
Commit 887a734
committed
fix(ai-edition): fall back to VirtualPreview for the screen stage
The refactor that swapped the screen preview from the legacy CSS+<video>
approach (VirtualPreview) to a Pixi v8 WebGL compositor
(preview-compositor/PreviewCompositor) regressed the editor preview.
The Pixi path needs the <video> to stay as a hidden decode source
for a VideoSource; combined with setPixiReady firing while canvasSize is
still {0,0} on first mount, the canvas init'd at 1x1, the resize effect
bailed, and the user got an empty stage (wallpaper showing through) or
a black rectangle where the screen should be.
Restore the VirtualPreview path until the Pixi port has tests and
its own QA. The Pixi files stay in the codebase under
preview-compositor/ for the next attempt. Inline comment in
PreviewCanvas.tsx records the failure write-up.1 parent d2042c6 commit 887a734
1 file changed
Lines changed: 25 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
| 52 | + | |
56 | 53 | | |
57 | 54 | | |
58 | 55 | | |
59 | 56 | | |
60 | 57 | | |
61 | 58 | | |
62 | | - | |
| 59 | + | |
63 | 60 | | |
64 | 61 | | |
65 | 62 | | |
| |||
271 | 268 | | |
272 | 269 | | |
273 | 270 | | |
274 | | - | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
275 | 288 | | |
276 | 289 | | |
277 | 290 | | |
| |||
387 | 400 | | |
388 | 401 | | |
389 | 402 | | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
390 | 409 | | |
391 | 410 | | |
392 | 411 | | |
| |||
0 commit comments