boost-app opened a new issue #306:
URL: https://github.com/apache/cordova-plugin-media/issues/306


   # Feature Request
   Make this plugin able to mix with background audio from other apps. Support 
the audio ducking feature as well.
   
   ## Motivation Behind Feature
   The plugin currently supports only the AVAudioSessionCategories 
`AVAudioSessionCategoryPlayback` & `AVAudioSessionAmbientSolo`.
   
   This makes it impossible to mix the apps audio with e.g. music coming from 
spotify in the background.
   
   
   ## Feature Description
   The `startPlayingAudio()` should accept an optional parameters 
`mixWithBackgroundAudio` and `duckBackgroundAudio` for this along the lines of 
the already accepted `playAudioWhenScreenIsLocked`.
   
   When the parameters to mix with other audio is set to true the 
AVAudioSessionCategory should be set to 
   
   `[self.avSession setCategory:AVAudioSessionCategoryAmbient 
withOptions:(AVAudioSessionCategoryOptionMixWithOthers, 
AVAudioSessionCategoryOptionDuckOthers) error:&err];`
   
   (and the audio ducking as well)
   
   ## Alternatives or Workarounds
   change the AVAudioSessionCategory by hand and install local version of this 
plugin
   
   
   


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