Ionic 7 ,Angular version is 17 , record video

hi i install , beacuse native-cordova is deprecated , so please guide me which plugin best gor me video record with audio . and also guide me how to fix this error
awesome-cordova-plugin @media-capture , but video not record showing this error

Error :
src/app/home/home.page.ts:59:9 - error TS2345: Argument of type ‘(data: MediaFile) => void’ is not assignable to parameter of type ‘(value: MediaFile | CaptureError) => void | PromiseLike’.
Types of parameters ‘data’ and ‘value’ are incompatible.
Type ‘MediaFile | CaptureError’ is not assignable to type ‘MediaFile’.
Type ‘CaptureError’ is missing the following properties from type ‘MediaFile’: length, pop, push, concat, and 26 more.

59 (data: MediaFile) => { }
}

Code : async takeVideo() {
const options: CaptureVideoOptions = {
limit: 1,
duration: 30, // Set the maximum duration for the recording (in seconds)
};
this.mediaCapture.captureVideo(options)
.then(
(data: MediaFile) => {
console.log(data);
},
(err: CaptureError) => console.error(err)
);

}

can you share your ionic angular and node version in details it will help me alot
with the following command

ng version
ionic info

Ionic:

Ionic CLI : 7.2.0

Utility:

cordova-res : 0.15.4
native-run : 2.0.0

System:

NodeJS : v20.11.0
npm : 10.2.4
OS : Windows 10

PS D:\Mediaworks App\awarathon\Pwa_awa2.0> ng version

 _                      _                 ____ _     ___
/ \   _ __   __ _ _   _| | __ _ _ __     / ___| |   |_ _|

/ △ \ | '_ \ / | | | | |/ _ | '__| | | | | | |
/ ___ | | | | (
| | || | | (| | | | || | | |
// __| ||_, |_,||_,|| _|||
|___/

Angular CLI: 17.1.1
Node: 20.11.0
Package Manager: npm 10.2.4
OS: win32 x64

Angular:

Package Version

@angular-devkit/architect 0.1701.1 (cli-only)
@angular-devkit/core 17.1.1 (cli-only)
@angular-devkit/schematics 17.1.1 (cli-only)
@schematics/angular 17.1.1 (cli-only)