Record a session
stop(), when it reaches maxDurationSeconds (default and maximum: 600 seconds), or automatically after 3 minutes with no on-screen activity.
Playback
A completed recording is an HLS video.playlistUrl points to its playlist, and markers holds chapters for tab switches (tab_switch) and AI runs (run) with their timestamps. A player can use the markers to jump straight to a specific run.
Unlike live view URLs, the playlist URL is
not tokenized. Fetching it requires your Box API key, like any other API
call. Recordings are retained for 14 days.
X-Box-Api-Key header there, and feed the proxied playlist to an HLS player such as hls.js. Do not ship the key to end users.
Download
Save a completed recording as a regular MP4 file:path is omitted, the file is written to the working directory as box-recording-<id>.mp4. Recordings captured before MP4 support download as raw MPEG-TS with a .ts extension instead; check mp4SizeBytes (mp4_size_bytes in Python) on the recording’s metadata if you need to know in advance.
Find recordings later
Recordings belong to the box and can be discovered again after a restart or from another process:status (recording, completed, failed, or deleted), timing (startedAt, endedAt, durationMs), size, why it stopped (stoppedReason), and its expiry time.