Skip to content

Commit 044c381

Browse files
Keep the media bound at 30s and move the example watchdog above the budget
The media bound stays at its interim ceiling. The stretch through ICE `connected` is unmeasured in every region, so shortening the default is not something the probe data supports yet; a region that has the timings lowers it through the live view proxy's override instead. With the defaults unchanged, the three bounds sum to 48s rather than 28s, so the example timer moves to 50s to stay above the budget it has to outlast.
1 parent 77bfce2 commit 044c381

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎browsers/live-view.mdx‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ Both terminal events carry the same `reason`, so branch on it instead of matchin
130130

131131
### Detecting a viewer that never starts
132132

133-
Gate on `KERNEL_PLAYING`. It fires only once frames actually arrive, so it is the signal that distinguishes a working viewer from one that is still connecting or has silently failed. The terminal events below tell you when the client has stopped trying. Start a timer when you mount the iframe and remount if `KERNEL_PLAYING` has not arrived. The timer has to outlast the client's connect bounds, which run in sequence — transport, then signaling, then media — and sum to 28s by default. It also covers loading the frame, including waking a browser that has gone to sleep, so leave room above that budget when you set it. If you reload sooner, you'll tear the frame down before it can report which stage stalled:
133+
Gate on `KERNEL_PLAYING`. It fires only once frames actually arrive, so it is the signal that distinguishes a working viewer from one that is still connecting or has silently failed. The terminal events below tell you when the client has stopped trying. Start a timer when you mount the iframe and remount if `KERNEL_PLAYING` has not arrived. The timer has to outlast the client's connect bounds, which run in sequence — transport, then signaling, then media — and sum to 48s by default. If you wait less than that, you'll tear the frame down before it can report a stage that stalled late. The timer also covers loading the frame, including waking a browser that has gone to sleep, so leave room above the budget when you set it:
134134

135135
```typescript Typescript/Javascript
136136
const iframe = document.querySelector('#kernel-live-view');
@@ -147,7 +147,7 @@ function arm() {
147147
iframe.src = 'about:blank';
148148
iframe.src = src;
149149
arm();
150-
}, 35000);
150+
}, 50000);
151151
}
152152

153153
window.addEventListener('message', (event) => {

0 commit comments

Comments
 (0)