Skip to content

Conversation

@AndreasLymalmMTM
Copy link
Contributor

Problem

On Android, trying to call audioSetPreferences with any parameter configuration of AudioPreferences gives the exception:

Invalid argument: Instance of 'AudioPreferences'

Implemented Solution

Changed how the parameter is passed, mimicking the audioEnable function.

Testing

Android

Calling audioSetPreferences and then previous or next worked.

iOS

When testing on iOS, no exception was thrown, but previous and next didn't work (didn't skip any audio).

Copy link
Member

@ddfreiling ddfreiling left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks Andreas, we also need a small fix on the Flutter side to turn the object into a Map, I will do this after merge.

EDIT: Nevermind, | missed that this also included the platform side fix.

@ddfreiling ddfreiling merged commit 336142d into Notalib:main Dec 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants