Skip to content

Support real-time access to video stream during recording (streaming bytes or chunks) #393

@AgustinBaffo

Description

@AgustinBaffo

I'm currently using the plugin to capture video, but the startRecordVideo / stopRecordVideo methods only return the final file path after recording ends.
For my use case, I need to process the video data in real time (e.g., stream it somewhere). Not having access to the video stream during recording limits this.

I'd like to have a way to access the video bytes or stream while recording is ongoing.
This could be through an event that emits chunks of video data (e.g. like MediaRecorder.ondataavailable in web), or some API that allows piping the data out in real-time.

Using navigator.mediaDevices + MediaRecorder, but it has limited support and performance issues in iOS WebView.

I've seen related questions like: #366 #279

A real-time stream or callback mechanism would unlock many use cases: live processing, encryption, cloud upload, etc.
Even exposing intermediate temporary files during recording would help.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions