mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-01-19 00:12:53 +08:00
feat(camera-preview): add record video functions (#3463)
* Update index.ts Added video instance * Fixed lints Fixed lints
This commit is contained in:
parent
b2afc131ca
commit
7ae1df2489
@ -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)
|
||||
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user