Recording and live view

You can record the screen as MP4, and you can open a live view of the same session.

In the dashboard: Record session, Live browser, Take control. In the API: record, recording_url, live_url, live_view_url.

Record on create

SessionRequest.record: boolean, default false. Description: record the session's screen as an MP4.

request.sh
curl -X POST "https://interact.geonode.io/v1/sessions?wait=true" \
  -H "X-API-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "country": "us",
    "engine": "chromium",
    "record": true
  }'

Recording fields on the session

FieldMeaning
recordWhether a screen recording was asked for.
recordingRecordingReport while useful: active, seconds, frames, bytes, error.
recording_urlWhere the recording is: the session's own door while it lives, the kept file for seven days after it ends.
recording_savedWhether keeping the recording worked. Null until the session ends.

Recording endpoint

GET /v1/sessions/{session_id}/recording

OpenAPI: redirect to the session's own door while it lives, to the kept file for seven days after it ends. Response 307 on success. 404 can be not_found or no_recording.

recording.sh
curl -I "https://interact.geonode.io/v1/sessions/SESSION_ID/recording" \
  -H "X-API-Key: YOUR_API_KEY"

Live view

FieldMeaning
liveWhether the session serves a live view of its screen. Null until the container has said.
live_urlThe screen as an MJPEG stream, under the same token. Null until the container serves one.
live_view_urlThe same screen in a page with a Take control button, where a person can click, type and paste. Null when live_url is.
live_viewersViewers watching the live view. Watching keeps nothing alive.
clientsClients attached over CDP. A person in the live view is not a client.
response.json
{
  "live": true,
  "live_url": "https://interact.geonode.io/<session-token>/live",
  "live_view_url": "https://interact.geonode.io/<session-token>/live/view",
  "live_viewers": 1,
  "clients": 0,
  "record": true,
  "recording_url": "https://interact.geonode.io/<session-token>"
}

Watching alone does not reset idle timeout. See Duration and idle timeout.

Next

Was this page helpful?

On this page