Orca is the place for working with a fleet of agents (e.g. Grok Bot, Claude Code). Run any coding agent with your own subscription. Available on desktop, mobile and remote runtime.
TypeScript adeagent-ideai-agentsautomationbotclaude-codecodexghosttygrok-bothermes-agentmobile-appmuseopenclawopencodeorchestrationpiruntimeterminalworktreesyc-backed
import { Buffer } from 'buffer'
import type { BrowserScreencastFrame } from '../transport/browser-screencast-protocol'
// Reuse bridge b64: re-encoding costs 75–90% of page frame handling and grows with frame size.
// Optional b64 keeps non-bridge callers working via native encoding; streaming always supplies it.
export function createBrowserFrameDataUri(frame: BrowserScreencastFrame): string {
const base64 = frame.b64 ?? Buffer.from(frame.image).toString('base64')
return `data:image/${frame.format};base64,${base64}`
}