Fix audio player: streamline setUrl method call for web implementation

This commit is contained in:
Leon Bösche
2026-01-25 02:00:59 +01:00
parent 132f0cae6c
commit cb560366b8

View File

@@ -67,10 +67,7 @@ class _AudioPlayerBarState extends State<AudioPlayerBar>
try {
if (kIsWeb) {
// Web implementation
await _audioPlayer.setUrl(
widget.fileUrl,
mimeType: widget.mimeType,
);
await _audioPlayer.setUrl(widget.fileUrl, mimeType: widget.mimeType);
_durationSubscription = _audioPlayer.durationStream.listen((d) {
if (d != null) {
setState(() {