You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "breautek (via GitHub)" <gi...@apache.org> on 2023/09/08 12:43:52 UTC

[GitHub] [cordova-plugin-media] breautek commented on issue #358: Android 12 (api 31-32) - audio not playing error 1

breautek commented on issue #358:
URL: https://github.com/apache/cordova-plugin-media/issues/358#issuecomment-1711611651

   > okay so after more testing I found that calling `release()` after `stopRecord()` was working... Is this normal behavior ?
   
   Based on the [docs](https://github.com/apache/cordova-plugin-media#mediarelease) I'd say so.
   
   > Releases the underlying operating system's audio resources. This is particularly important for Android, since there are a finite amount of OpenCore instances for media playback. Applications should call the release function for any Media resource that is no longer needed.
   
   It sounds like not calling `release` may cause blocking on available `OpenCore` resources. I'd imagine the limit on these `OpenCore` instances may vary from device, but by not calling `release`, you'll eventually hit the instance limit.
   
   Closing because I believe this isn't actually a bug.


-- 
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: issues-unsubscribe@cordova.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org