Skip to content

Christian/live view docs update #12

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 12 additions & 3 deletions observability/live-view.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,24 @@ If using Kernel's [app platform](/build/develop), you can tail the logs to print
kernel logs <your-app> --follow
```

## Query parameters
## Live view configuration

The `browser_live_view_url` supports additional query parameters to customize the live view:
Configuring the live view by setting query parameters on your `browser_live_view_url`.

```
https://api.onkernel.com/browser/live?w=1024&h=768&r=60&readOnly=false&jwt=

```

- `w` / `width` (num): sets the width of the VM's screen in pixels.
- `h` / `height` (num): sets the height of the VM's screen in pixels.
- `r` / `rate` (num): sets the live view frame rate in frames per second. The default is 30.
- `r` / `rate` (num): sets the live view framerate in frames per second. The default is 30.
- `readOnly` (bool): when set to `true`, the view will be non-interactive.

### Framerate

By default framerate is set to 30 fps, however, we support framerates between 30 - 60 fps by increments of 10.

## Browser persistence

If you [marked](/launch/browser-persistence) a browser for persistence, `browser_live_view_url` remains active after the invocation ends. It remains active until you [terminate the browser](/launch/browser-termination).
Expand Down