audio_waveforms icon indicating copy to clipboard operation
audio_waveforms copied to clipboard

setFinishMode() doesn't work on iOS

Open sma opened this issue 8 months ago • 1 comments

Describe the bug A call to setFinishMode never returns. You forget to return the result in the native code.

To Reproduce Steps to reproduce the behavior:

print("Hi");
await controller.setFinishMode(FinishMode.loop);
print("Never reached");

Smartphone (please complete the following information): Any iOS device.

Additional context

In AudioPlayer.swift on line 148, please add this:

result(nil)

This fixes the problem.

sma avatar Apr 02 '25 09:04 sma

I just noticed that you made the same mistake in the android source.

sma avatar Apr 04 '25 13:04 sma

Closing this issue as this has been released

ujas-m-simformsolutions avatar Nov 19 '25 11:11 ujas-m-simformsolutions