Flutter-AssetsAudioPlayer
Flutter-AssetsAudioPlayer copied to clipboard
PlatformException(PLAY_ERROR, Cannot play ipod-library://item/item.mp3?id=8952320356688757343, The requested URL was not found on this server., null)
Flutter Version 1.22.6 My version :
assets_audio_player: ^2.0.14
My version :
IOS
Platform :
Describe the bug Cannot play song
Small code to reproduce
import 'package:assets_audio_player/assets_audio_player.dart';
import 'package:flutter/material.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatefulWidget {
@override
_MyAppState createState() => _MyAppState();
}
class _MyAppState extends State {
final AssetsAudioPlayer _assetsAudioPlayer = AssetsAudioPlayer();
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
body: Center(
child: RaisedButton(
child: Text("open"),
onPressed: () {
//open code here
}
),
),
),
);
}
}
I had the same error when using bad .mp3 file. In my case, I had a file with .mp3 extension but using program (MediaInfo) I figured out that file was a video with .mp3 extension.
same issue facing how to fix any one please help me to fix this issue.
Unhandled Exception: PlatformException(PLAY_ERROR, Cannot play ipod-library://item/item.mp3?id=1737155030381931502, The requested URL was not found on this server., null)
any updates?