Reputation: 1
Description:
When attempting to load audio files with Unicode characters in their names, such as дуу.mp3
, the just_audio_windows package seems to encounter issues.
// not actual production code but example
import 'package:just_audio/just_audio.dart';
void loadUnicodeAudio() {
final audioPlayer = AudioPlayer();
audioPlayer.setFilePath('D:/examplefolder/дуу.mp3');
// Add code for audio playback.
}
void loadUnicodeAudio2() {
final audioPlayer = AudioPlayer();
audioPlayer.setFilePath('D:/дуу/song.mp3');
// Add code for audio playback.
}
log:
[just_audio_windows] Item error: The system cannot find the path specified.
Instead, the audio player throws an exception or fails to load the file properly when Unicode characters are present in the file name.
Environment:
Flutter version: 3.10.2
Operating System: Windows 11
The just_audio_windows and just_audio packages should load and play audio files with Unicode characters in their names without any errors.
Upvotes: 0
Views: 148