wang-bin / fvp

Flutter video player plugin for all desktop+mobile platforms. download prebuilt examples from github actions. https://pub.dev/packages/fvp
BSD 3-Clause "New" or "Revised" License
126 stars 20 forks source link

Audio focus processing on android is missing #72

Open DovgopolsSerj opened 4 months ago

DovgopolsSerj commented 4 months ago

I'm making an application for car headunits and there can be a player and a navigator on the screen at the same time. When the navigator starts to say something the standard video_player pauses. But with FVP this behavior is lost. For clarity: With FVP: https://drive.google.com/file/d/1IARpnnEJ74_0FaoMPz4IopOxS-tG0z87/view?usp=drive_link No FVP (only registerWith( ) was deleted): https://drive.google.com/file/d/1YUBALyfd-c53eqaKmC802BXtqIv25P9E/view?usp=sharing

DovgopolsSerj commented 4 months ago

I think this issue can be closed. It turned out to be quite easy to add standard behavior using the audio_session package: https://pub.dev/packages/audio_session And even achieve much more flexible behavior than video_player provides.