Record video using system camera?


#1

Hi, I would like to record videos using the system camera.

To take photos, I use Expo.ImagePicker.launchCameraAsync({}) which works fine.
For videos I tried Expo.ImagePicker.launchCameraAsync({ mediaTypes: 'Videos' }) but this doesn’t work.

There is already a topic on this in the Expo forums: Provide a way to record video from system camera

The only reply, from @ccheever, states that this already exists and refers to https://docs.expo.io/versions/latest/sdk/camera.html#content but I could not find the solution there.

How can this be done?


#2

Hey @dfels,

Make sure you thoroughly read the docs! You were on the right track.
https://docs.expo.io/versions/v29.0.0/sdk/camera#recordasync

Cheers,

Adam


#3

Hi @adamjnav, thank you for your reply.

I have already read this, but as far as I understood the Camera component is used for creating custom screens?

A React component that renders a preview for the device’s either front or back camera.

This is not what I am looking for, sorry if i didn’t made it clear in my opening post.
I would prefer to launch the system camera app to record a video and get the result, as when using Expo.ImagePicker.launchCameraAsync({}).

Is that possible or do I need to implement a custom screen for recording videos?


#4

Anyone?


closed #5

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.