Function: video()
video(
framesList):UnifiedMessageInput
Defined in: core/dist/types/multimodal.d.ts:74
Alias for frames() - creates a video frames input More intuitive name for video analysis workflows
Supports static frames or live MediaStream for real-time video analysis.
Parameters
framesList
MediaStream | MediaFrame[] | Iterable<MediaFrame, any, any> | AsyncIterable<MediaFrame, any, any>
Returns
Example
Live video stream
const videoStream = await navigator.mediaDevices.getDisplayMedia({ video: true });
bot.process(video(videoStream));