mayankkataria opened a new issue #301:
URL: https://github.com/apache/cordova-plugin-media/issues/301
I'm using this plugin with ionic capacitor instead of cordova with command
```ionic cap sync```.
My code:
```
audioFile: MediaObject;
constructor(private media: Media, private plt: Platform) {}
ionViewDidEnter() {
this.plt.ready()
.then(() => {
setTimeout(() => {
this.audioFile = this.media.create('/audiofile.mp3');
this.audioFile.onStatusUpdate.subscribe(status =>
console.log(status));
this.audioFile.onSuccess.subscribe(() => console.log('Action is
successful'));
this.audioFile.onError.subscribe(error => console.log('Error!',
error));
}, 1000);
})
.catch(err => console.log('ready error: ', err));
}
record() {
// When record button clicked
this.audioFile.startRecord();
}
pause() {
// When pause button clicked
this.audioFile.stopRecord();
this.audioFile.play();
}
```
I clicked record, said something and than paused.
When I clicked pause button I expected to either play the recording or get
```audiofile.mp3``` in file manager of my android device but I didn't got any
of it. I'm also not getting any error so I can't find out the exact issue.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]