Skip to main content

Overview

Anchor Browser offers a live view feature that allows you to embed an interactive frame of a website as a web element. The live_view_url is received when creating a session.

Headful Mode (Default)

Headful mode provides a single URL to view the full chrome view, including the address bar. This ensures the presented tab is always the active tab and provides the best user experience. Browser Live View in Headful Mode To create a browser in headful mode, create a session with browser.headless.active set to false (the default):
Then, use the live_view_url from the response to embed the live view directly into an iframe:

Advanced Embedding Configuration

Embed in Fullscreen View (Hide Navigation Bar)

To use the fullscreen view, replace the live view URL with the following:

Disable Browser Interactivity

To prevent the end user from interacting with the browser, add the style="pointer-events: none;" attribute to the iframe:
This feature is available for both headful and headless modes.

Single-Use Live View URL

To generate a live view URL that can only be used once, set one_time_url to true. After the first viewer connects and disconnects, the URL becomes permanently invalid.
one_time_url requires a headful browser. It cannot be used with headless mode.

Remote OS cursor

By default, live view draws a cursor at your mouse. To paint the remote OS pointer into the stream instead (needed to watch OS-level mouse APIs), append show_cursor=1 to live_view_url:

Headless Mode

To obtain the browser live session URL in headless mode, start by creating a session:
Browser Live View in Headless Mode
The live_view_url currently points to the browser default first page.
Then, use the create-session response to embed the live view URL directly into an iframe: