# Ionic 7 ,Angular version is 17 , record video

**URL:** <https://forum.ionicframework.com/t/ionic-7-angular-version-is-17-record-video/239458>\
**Category:** Ionic Framework\
**Tags:** announcement\
**Created:** [February 2, 2024, 8:38am UTC](https://forum.ionicframework.com/t/ionic-7-angular-version-is-17-record-video/239458 "2024-02-02T08:38:11Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![chintak1812](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/chintak1812/32/146650_2.png) [@chintak1812](https://forum.ionicframework.com/u/chintak1812)\
**Post date:** [February 2, 2024, 8:38am UTC](https://forum.ionicframework.com/t/ionic-7-angular-version-is-17-record-video/239458/1 "2024-02-02T08:38:11Z")

</div>

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)  
);

}

---

<div class="post-metadata">

**Author:** ![priyankachaudhari00](https://avatars.discourse-cdn.com/v4/letter/p/e79b87/32.png) [@priyankachaudhari00](https://forum.ionicframework.com/u/priyankachaudhari00)\
**Post date:** [February 21, 2024, 8:44am UTC](https://forum.ionicframework.com/t/ionic-7-angular-version-is-17-record-video/239458/2 "2024-02-21T08:44:39Z")

</div>

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

> ng version  
> ionic info

---

<div class="post-metadata">

**Author:** ![chintak1812](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/chintak1812/32/146650_2.png) [@chintak1812](https://forum.ionicframework.com/u/chintak1812)\
**Post date:** [March 1, 2024, 6:11am UTC](https://forum.ionicframework.com/t/ionic-7-angular-version-is-17-record-video/239458/3 "2024-03-01T06:11:41Z")

</div>

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)
