Skip to content

Commit

Permalink
feat(camera-preview): add record video functions (#3463)
Browse files Browse the repository at this point in the history
* Update index.ts

Added video instance

* Fixed lints

Fixed lints
  • Loading branch information
pravn1729 committed Jun 23, 2020
1 parent b2afc13 commit 7ae1df2
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions src/@ionic-native/plugins/camera-preview/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,20 @@ export class CameraPreview extends IonicNativePlugin {
startCamera(options: CameraPreviewOptions): Promise<any> {
return;
}

/**
* Starts the camera video instance.
* @param {any} options
* @return {Promise<any>}
*/
@Cordova({
successIndex: 1,
errorIndex: 2,
})
startRecordVideo(options: any): Promise<any> {
return;
}


/**
* Stops the camera preview instance. (iOS & Android)
Expand All @@ -211,6 +225,15 @@ export class CameraPreview extends IonicNativePlugin {
stopCamera(): Promise<any> {
return;
}

/**
* Stops the camera video instance. (iOS & Android)
* @return {Promise<any>}
*/
@Cordova()
stopRecordVideo(): Promise<any> {
return;
}

/**
* Switch from the rear camera and front camera, if available.
Expand Down

0 comments on commit 7ae1df2

Please sign in to comment.