tempo-riz opened a new issue, #358:
URL: https://github.com/apache/cordova-plugin-media/issues/358
# Bug Report
audio record works as expected but when I try to play the recorded audio it
gives me error 1 with no other callback triggering
```
//works as expected
let m1;
function rec() {
m1 = new Media(cordova.file.dataDirectory + Date.now() + ".m4a",
() => {
console.log('audio saved in', m1.src)
},
console.error,
console.log); //status
m1.startRecord();
setTimeout(() => {
m1.stopRecord()
}, 5000);
}
//crash
let m2;
function play(src) {
m2 = new Media(src,
() => {
console.log('audio play succes', m2.src)
},
console.error, //<- gives error code 1
console.log); //status
m2.play();
}
```
## Information
cordova 11.0.0
cordova android version 11.0.0
media plugin 6.0.0
file plugin 7.0.0
file is saved in
file:///data/user/0/appid/files/1662290364345.m4a
I also tried playing it from localhost:
https://localhost/__cdvfile_files__/1662290364345.m4a
both give error 1
but from localhost there is a delay and the status callback gives 1 before
crashing with err 1
I think it was working fine before I updated the plugin...
- [x] I searched for existing GitHub issues
- [x] I updated all Cordova tooling to most recent version
- [x] I included all the necessary information above
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]