Description
Feature Request
Motivation Behind Feature
Currently to build an app that can take pictures and record video, a user has to use a camera specific plugin such as this one and a separate video recording plugin such as @awesome-cordova-plugins/media-capture. These plugins do not operate in too similar a fashion when recording and storing media. It would be very convenient and useful to have both picture and video recording capabilities in one plugin and this camera plugin already has a lot of great configurable options.
Feature Description
- Add a new method to the
camera
class calledgetVideo(successCallback, errorCallback, options)
that accepts similar parameters to thegetPicture
method including the CameraOptions object. - Allow video to be stored to temporary app storage using the
saveToPhotoAlbum
boolean option. - Potentially extend the CameraOptions interface for video specific options if necessary.
Alternatives or Workarounds
Two plugins are required at this time to have both picture and video recording functionality (@awesome-cordova-plugins/camera and @awesome-cordova-plugins/media-capture for example).
This camera plugin gives great options for recording and storing pictures, particularly allowing the developer to save the image file to temporary app storage with the saveToPhotoAlbum
camera option. Something to note, there is a mediaType for VIDEO in the cameraOptions but it does not do what it seems like it should do and captures/stores an image file.
The media-capture plugin is an option for recording video but it lacks a few of the useful features that the camera plugin offers. Namely it has less options and doesn't allow the user to store the video file anywhere other than the photo gallery.