Hi guys,
thanks for this amazing package.
In my app I am using Webview for showing game and
Flutter for playing sounds and background music.
I am using just_audio as player.
Everything works perfectly at most of the users, but
recently I receive som reports from Samsung S - ultra and S - +
users which upgraded to One UI 7, that game starts acting weirdly.
For example when user click on game component, background music stops
and after a few seconds it continue playing - also click sound is played.
For example
S24 ultra
The recent Android update has caused a sound bug issue.
Every click of a tile or menu click will cause the background music to stop for a few ms,
then continue playing with click sound. Issue was not present prior to the Android update .
Background music and sound for click were playing simultaneously.
Recently when I have sounds turned on,
anytime I take an action the sound stutters and the game functions slow down.
This may have started with the latest Android update.
When I stopped recording it went back to stuttering when sounds are on.
I tried several screen recordings, and it's completely normal when recording.
so when users starts screen recording, it behaves normally.
This is my Audio Session config ->
await session.configure(
const AudioSessionConfiguration(
avAudioSessionCategory: AVAudioSessionCategory.playback,
avAudioSessionCategoryOptions:
AVAudioSessionCategoryOptions.mixWithOthers,
androidWillPauseWhenDucked: false,
androidAudioAttributes: AndroidAudioAttributes(
contentType: AndroidAudioContentType.music,
usage: AndroidAudioUsage.game,
),
),
);
and this is my background player :
AudioPlayer(
handleAudioSessionActivation: false,
androidApplyAudioAttributes: true,
handleInterruptions: false,
);
and
this is player which is created every time sounds going to play
AudioPlayer(
handleAudioSessionActivation: false,
androidApplyAudioAttributes: true,
handleInterruptions: false,
);
after sound play is completed, it is disposed ->
await soundPlayer.stop();
await soundPlayer.dispose();
Please do you have any idea how to fix this ? Or it Samsung UI 7 issue ?
Hi guys,
thanks for this amazing package.
In my app I am using Webview for showing game and
Flutter for playing sounds and background music.
I am using just_audio as player.
Everything works perfectly at most of the users, but
recently I receive som reports from Samsung S - ultra and S - +
users which upgraded to One UI 7, that game starts acting weirdly.
For example when user click on game component, background music stops
and after a few seconds it continue playing - also click sound is played.
For example
S24 ultra
so when users starts screen recording, it behaves normally.
This is my Audio Session config ->
and this is my background player :
and
this is player which is created every time sounds going to play
after sound play is completed, it is disposed ->
Please do you have any idea how to fix this ? Or it Samsung UI 7 issue ?