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:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to