bcc-code / bccm-player

[BCC Media] Flutter package for video-heavy apps
https://bcc-code.github.io/bccm-player/
Other
17 stars 11 forks source link

More control over audio attributes / audio category #61

Closed andreasgangso closed 3 months ago

andreasgangso commented 7 months ago

Android and ios allows signalling what kind of media the app is playing, in order to better understand when it should automatically stop playback etc. Right now we are always aggressively signalling in a way that causes other apps to stop playing as soon as you open apps with bccm_player. E.g. because we are setting AVAudioSessionCategoryPlayback.

Investigate and improve this / make it configurable.

andreasgangso commented 3 months ago

I improved this somewhat on ios recently, by only setting it once you replaceCurrentMediaItem and such..

And on android this is configurable via setMixWithOthers(). so i guess its good