Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add video support to the Camera API #2575

Open
cdgriffith opened this issue May 18, 2024 · 1 comment
Open

Add video support to the Camera API #2575

cdgriffith opened this issue May 18, 2024 · 1 comment
Labels
enhancement New features, or improvements to existing features.

Comments

@cdgriffith
Copy link

What is the problem or limitation you are having?

The camera API lists it can take video currently, but there do not seem to be any methods for it. https://toga.readthedocs.io/en/stable/reference/api/hardware/camera.html

Describe the solution you'd like

Be able to take and save a video on Andriod and iOS

Describe alternatives you've considered

N/A

Additional context

No response

@cdgriffith cdgriffith added the enhancement New features, or improvements to existing features. label May 18, 2024
@freakboy3742
Copy link
Member

Thanks for the report. The reference to video in the description is an oversight; as currently implemented, the camera API can't be used to capture video. For right now, the documentation should be definitely be corrected to remove the video reference.

Capturing video shouldn't be that difficult - as far as I'm aware, a slightly different call on the same APIs that are already in use will allow capture of video; the only additional step is that microphone permissions might be required on some platforms.

However, the bigger issue is that once you've got a captured video, we don't currently have a cross-platform Toga representation to store that video. Before we can realistically add video support to the camera, we really need to add a toga.Video class to store video, and a toga.VideoView widget to display videos - analogs of the toga.Image and toga.ImageView widgets used for images.

@freakboy3742 freakboy3742 changed the title Take Video Add video support to the Camera May 18, 2024
@freakboy3742 freakboy3742 changed the title Add video support to the Camera Add video support to the Camera API May 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New features, or improvements to existing features.
Projects
None yet
Development

No branches or pull requests

2 participants