You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by GitBox <gi...@apache.org> on 2021/09/29 10:59:28 UTC

[GitHub] [cordova-plugin-media] 21pg commented on issue #268: Can WRITE_EXTERNAL_STORAGE be optional?

21pg commented on issue #268:
URL: https://github.com/apache/cordova-plugin-media/issues/268#issuecomment-930070175


   > For anyone interested I implemented a fix/workaround on my fork: you can check it here: [https://github.com/uareurapid/cordova-plugin-media/blob/master/src/android/AudioHandler.java](url) on `private void promptForRecord()` And [https://github.com/uareurapid/cordova-plugin-media/blob/master/src/android/AudioPlayer.java](url) Check references to `if(Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q)`
   > 
   > Basically, for recording & saving audio it doesn't need WRITE_EXTERNAL_STORAGE permissions, if SDK >=29, as it will use **scoped storage** instead, and save the file in directories belonging to the app.
   > 
   > If the permissions were already granted before, or the SDk is lower it behaves as usual
   > 
   > Hope this helps others
   
   I don't required to record and play.
   We use live stream e.g (-[(http://streams.radiobob.de/bob-chillout/aac-64/streams.radiobob.de/)])
   and just want to play this audio stream on button click..
   When I click play button, output is: Error: 1
   here-
   https://github.com/apache/cordova-plugin-media/issues/315


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