George F
George F

Reputation: 11

Customize IOS Background Audio Play Controls with Flutter just_audio_background Package

I am making an Flutter IOS app that depends on just_audio and just_audio_background. Implementing all the main functions was very straightforward with the help of documentation. However, I got stuck when I wanted to change the (next audio/previous audio) control buttons to (fast forward/rewind) buttons on the lock screen (shown by the picture).

I saw there are fastForwardInterval and rewindInterval params for the JustAudioBackground.init() function, but changing them does not seem to have any effect on the button configuration.

Does anyone have any experience with solving this issue? Would really appreciate some help.

Upvotes: 0

Views: 1055

Answers (2)

Kodi Q
Kodi Q

Reputation: 11

You have to use audio_service (https://pub.dev/packages/audio_service) that is just_audio_background also based on.

Upvotes: 1

Ryan Heise
Ryan Heise

Reputation: 2786

Issues should be reported via GitHub, this includes feature requests. Note that the most similar existing feature request is here:

https://github.com/ryanheise/just_audio/issues/912

Upvotes: 0

Related Questions