browser_start_video_recording
Browser Start Video Recording
Begin recording a video of the browser session. Captures all visual activity in the viewport. Recording continues until stopped with browser_stop_video_recording. Useful for debugging, demos, and documentation.
Usage Example
1234567891011
import asyncio
from owl_browser import OwlBrowser, RemoteConfig
# Async usage
async with OwlBrowser(config) as browser:
context = await browser.create_context()
context_id = context["context_id"]
await browser.start_video_recording(
context_id=context_id
)
Parameters
Required
context_idstringrequiredThe unique identifier of the browser context (e.g., 'ctx_000001')
Optional
fpsstringFrames per second for the recording. Higher = smoother but larger file. Default: 30. Recommended: 15-30 for most use cases
codecstringVideo codec for encoding. Default: 'libx264' (H.264, widely compatible). Options depend on system FFmpeg installation
Response
Returns a JSON object with the operation result.
{
"success": true,
"result": <value>
}