runcloud 0.2.240 → 0.2.241
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/commands/image.js
CHANGED
|
@@ -76,7 +76,7 @@ export async function pollImageRegistration(api, ref, opts = {}) {
|
|
|
76
76
|
for (;;) {
|
|
77
77
|
const data = await api.get('/run-cloud/images');
|
|
78
78
|
const items = (data?.items ?? []);
|
|
79
|
-
const row = items.find((item) => item.
|
|
79
|
+
const row = items.find((item) => (opts.id ? item.id === opts.id : item.name === ref));
|
|
80
80
|
if (row)
|
|
81
81
|
opts.onState?.(row.state);
|
|
82
82
|
if (row && TERMINAL_STATES.has(row.state))
|
|
@@ -107,6 +107,7 @@ export function registerImage(program) {
|
|
|
107
107
|
const status = opts.json ? undefined : new StatusLine();
|
|
108
108
|
status?.update(`Building ${opts.ref}`);
|
|
109
109
|
const finalRow = await pollImageRegistration(api, opts.ref, {
|
|
110
|
+
id: typeof created?.id === 'string' ? created.id : undefined,
|
|
110
111
|
timeoutMs: opts.timeout * 1000,
|
|
111
112
|
onState: (state) => status?.update(state === 'building' ? `Building ${opts.ref}` : `${opts.ref} is ${state}`),
|
|
112
113
|
});
|
package/dist/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const CLI_VERSION = '0.2.
|
|
1
|
+
export const CLI_VERSION = '0.2.241';
|
package/package.json
CHANGED
|
Binary file
|
|
@@ -238,6 +238,36 @@ runcloud ios tunnel-status --json
|
|
|
238
238
|
Do not expose an unauthenticated third-party tunnel. If the sidecar is
|
|
239
239
|
unavailable, report that requirement instead of guessing a public URL.
|
|
240
240
|
|
|
241
|
+
## Stream Codec and Browsers
|
|
242
|
+
|
|
243
|
+
Keep the default codec, `auto`. It selects the run.cloud streaming protocol:
|
|
244
|
+
low-latency H.264 over MoQ, with H.264 over HTTP as the fallback. Do not set
|
|
245
|
+
`--codec mjpeg` unless the client cannot decode H.264. MJPEG is a fallback
|
|
246
|
+
only. On Android it sends PNG screenshots at approximately 1.5 fps. It does not
|
|
247
|
+
turn off MoQ; codec and transport are separate choices.
|
|
248
|
+
|
|
249
|
+
To see or check the device, use `screenshot`, `accessibility-tree`, or
|
|
250
|
+
`recording`. These do not need a browser.
|
|
251
|
+
|
|
252
|
+
To watch a session in an automated browser, open the signed session URL as
|
|
253
|
+
the page itself. This works in installed Chrome, also headless. Do not build
|
|
254
|
+
an automated page that embeds viewers in iframes, especially in headless
|
|
255
|
+
Chrome:
|
|
256
|
+
|
|
257
|
+
- Chrome can stop painting a cross-origin iframe that is hidden or off-screen,
|
|
258
|
+
for example with `display: none`. Do not wait for a live status to show it.
|
|
259
|
+
- A `first_frame` report or live status does not prove that a picture is
|
|
260
|
+
visible. A hidden iframe can decode H.264 and report both. Check a screenshot.
|
|
261
|
+
- A localStorage `SecurityError` in a viewer iframe does not by itself stop the
|
|
262
|
+
video. Look for another cause.
|
|
263
|
+
- Check H.264 support with `VideoDecoder.isConfigSupported`, not by browser
|
|
264
|
+
name. `VideoDecoder` can exist without the codec, and builds differ.
|
|
265
|
+
- Playwright's bundled Chromium does not play the `auto` stream reliably. Use
|
|
266
|
+
installed Chrome (Playwright `channel: 'chrome'`).
|
|
267
|
+
|
|
268
|
+
If you must embed viewers, use installed Chrome in a visible window, keep each
|
|
269
|
+
iframe visible, and serve the page from an `http://` or `https://` origin.
|
|
270
|
+
|
|
241
271
|
## Embed a Session
|
|
242
272
|
|
|
243
273
|
- Use `RemoteControl` from `@run-cloud/ui` with the signed session URL.
|
package/runcloud-0.2.240.tgz
DELETED
|
Binary file
|