I recorded an audio with the latest flutter_sound version (9.1.7) with Flutter Web.
The codec i used was opusWebM.
In the web version, onProgress works correctly and shows me the right position.
But in Android, it doesnt work, i tested other audios and it worked, but audios recorded in browser with flutter web dont.
Steps to reproduce:
Record something in browser with flutter web using opusWebM.
Save the recorded audio somewhere you can access with flutter mobile later.
Play the recorded audio on an android device, you will notice that onProgress always will return 0 in position variable.
My Code:
if (!_player!.isOpen()) {
await _player!.openPlayer();
}
await _player!.setSubscriptionDuration(Duration(milliseconds: 50));
/// My audio files urls requires authorization header
/// So i download my audios, and then, with their Uint8List
/// I start the player passing it on fromDataBuffer
await _player!.startPlayer(
whenFinished: whenFinished,
fromDataBuffer: _cacheAudio,
);
I recorded an audio with the latest flutter_sound version (9.1.7) with Flutter Web. The codec i used was opusWebM. In the web version, onProgress works correctly and shows me the right position. But in Android, it doesnt work, i tested other audios and it worked, but audios recorded in browser with flutter web dont.
Steps to reproduce: Record something in browser with flutter web using opusWebM. Save the recorded audio somewhere you can access with flutter mobile later. Play the recorded audio on an android device, you will notice that onProgress always will return 0 in position variable.
My Code:
Logs: