flutter_demos icon indicating copy to clipboard operation
flutter_demos copied to clipboard

Sound during an incoming call

Open Krushanov opened this issue 1 year ago • 1 comments

Hello! I encountered a bug where there is no sound during an incoming call on Android. I added the WAV file just like in your example. Could you please advise on what might be the cause? 2023-12-13_01-44-46

Krushanov avatar Dec 12 '23 22:12 Krushanov

Hello!

Have you called VIAudioFile.initialize API before VIAudioFile.play?

The error says that the fileId is not initialized. Its initialization is performed in VIAudioFile.initialize() method.

So, I see 2 possible reasons:

  1. initialization was not done
  2. initialization has failed for some reason

Best regards, Yulia Grigorieva

YuliaGrigorieva avatar Dec 13 '23 12:12 YuliaGrigorieva