Dear all,
I’m facing small problem with using cordova-plugin-screenrecord
My code start record & finish record but no mp4 file. Please check my code bellow:
declare let ScreenRecord: any;
record(){
try{
ScreenRecord.startRecord(
{isAudio: true},
"file:///storage/emulated/0/Android/data/io.ionic.starter/files/test.mp4",
(success)=> {
this.recording=true;
alert(success);
}, (error)=>{
alert(error);
}
);
}catch{e=>{
}}
}
stop(){
try{
ScreenRecord.stopRecord(
(success)=>{
this.recording=false;
alert(success + " : " + "file:///storage/emulated/0/Android/data/io.ionic.starter/files/test.mp4");
},
(error)=>{
alert(error);
}
);
}catch{e=>{
}}
}