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.
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
| Field | Meaning |
|---|---|
record | Whether a screen recording was asked for. |
recording | RecordingReport while useful: active, seconds, frames, bytes, error. |
recording_url | Where the recording is: the session's own door while it lives, the kept file for seven days after it ends. |
recording_saved | Whether keeping the recording worked. Null until the session ends. |
Recording endpoint
GET /v1/sessions/{session_id}/recordingOpenAPI: 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.
curl -I "https://interact.geonode.io/v1/sessions/SESSION_ID/recording" \
-H "X-API-Key: YOUR_API_KEY"Live view
| Field | Meaning |
|---|---|
live | Whether the session serves a live view of its screen. Null until the container has said. |
live_url | The screen as an MJPEG stream, under the same token. Null until the container serves one. |
live_view_url | The same screen in a page with a Take control button, where a person can click, type and paste. Null when live_url is. |
live_viewers | Viewers watching the live view. Watching keeps nothing alive. |
clients | Clients attached over CDP. A person in the live view is not a client. |
{
"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?