(_stream: MediaStream, agentId?: string)
| 10 | * @returns The raw Base64 string (without the data URI prefix) or null on failure. |
| 11 | */ |
| 12 | export async function captureCameraImage(_stream: MediaStream, agentId?: string): Promise<string | null> { |
| 13 | const base64 = await StreamManager.captureFrame('camera', agentId); |
| 14 | if (base64) { |
| 15 | Logger.debug(agentId || 'camera', `Camera frame captured (${base64.length} bytes)`); |
| 16 | } |
| 17 | return base64; |
| 18 | } |
no test coverage detected