Flutter-AssetsAudioPlayer icon indicating copy to clipboard operation
Flutter-AssetsAudioPlayer copied to clipboard

iOS don't set volume

Open amedeopro opened this issue 3 years ago • 7 comments

Flutter Version

My version : Channel stable 2.10.4

Lib Version

My version : ^3.0.4+1

Platform (Android / iOS / web) + version

Platform : iOS

Describe the bug

IOS don't set volume with playlist.setVolume(1);

Small code to reproduce


if(canPlayMessaggi){
      braniAudioPlayer.setVolume(0.1);
      messaggiAudioPlayer.open(
        Playlist(
            audios: messaggiArray
        ),
        loopMode: LoopMode.none,
        playInBackground: PlayInBackground.enabled,
        autoStart: true,
      );

      messaggiAudioPlayer.playlistAudioFinished.listen((Playing playing){
        braniAudioPlayer.setVolume(1);
      });
    }


amedeopro avatar May 09 '22 17:05 amedeopro

i have tried to print a log in

messaggiAudioPlayer.playlistAudioFinished.listen((Playing playing){
           print('finished');
           braniAudioPlayer.setVolume(1);
      });

but it would seem not to really enter the method

amedeopro avatar May 10 '22 10:05 amedeopro

@florent37 can you help me?

amedeopro avatar May 10 '22 16:05 amedeopro

@florent37 I also did a test on a physical device but the same result, everything works regularly only on Android

amedeopro avatar May 11 '22 14:05 amedeopro

@kalismeras61 can you help me? Thank you in advance

amedeopro avatar May 12 '22 12:05 amedeopro

Is there someone who can help me?

amedeopro avatar May 17 '22 14:05 amedeopro

who can help me?

amedeopro avatar May 19 '22 15:05 amedeopro

HTML5 Audio Unit not working on iOS, is it the same rule for the app?

The volume property on the iOS devices is read-only according to Apple's documentation:

On iOS devices, the audio level is always under the user’s physical control. The volume property is not settable in JavaScript. Reading the volume property always returns 1.

memisibram avatar Aug 07 '22 19:08 memisibram