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/04/19 04:03:35 UTC

[GitHub] [cordova-plugin-media] RSATom opened a new pull request #303: [android] added ability set usage type

RSATom opened a new pull request #303:
URL: https://github.com/apache/cordova-plugin-media/pull/303


   ### Platforms affected
   Android
   
   
   ### Motivation and Context
   Sometimes it's required change audio usage type for audio playback. In my case it's required use AudioAttributes.USAGE_VOICE_COMMUNICATION usage to be able play audio through earpiece.
   
   
   ### Description
   Patch just adds additional options object to Media constructor with the single possible option `usage`
   
   
   
   ### Testing
   To test it, it's required pass `{ usage: 2 }` object to Media constructor as last parameter. After that audio playback should go through earpiece 
   
   
   
   ### Checklist
   
   - [*] I've run the tests to see all new and existing tests pass
   - [ ] I added automated test coverage as appropriate for this change
   - [*] Commit is prefixed with `(platform)` if this change only applies to one platform (e.g. `(android)`)
   - [ ] If this Pull Request resolves an issue, I linked to the issue in the text above (and used the correct [keyword to close issues using keywords](https://help.github.com/articles/closing-issues-using-keywords/))
   - [ ] I've updated the documentation if necessary
   


-- 
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:
users@infra.apache.org



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


[GitHub] [cordova-plugin-media] stefankatic commented on pull request #303: (android) added ability set usage type

Posted by GitBox <gi...@apache.org>.
stefankatic commented on pull request #303:
URL: https://github.com/apache/cordova-plugin-media/pull/303#issuecomment-822728674


   Looks ok to me.


-- 
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:
users@infra.apache.org



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