florent37 / Flutter-AssetsAudioPlayer

Play simultaneously music/audio from assets/network/file directly from Flutter, compatible with android / ios / web / macos, displays notifications
https://pub.dartlang.org/packages/assets_audio_player
Apache License 2.0
755 stars 361 forks source link

PlatformException(PLAY_ERROR, Cannot play ipod-library://item/item.mp3?id=8952320356688757343, The requested URL was not found on this server., null) #557

Open loicgeek opened 3 years ago

loicgeek commented 3 years ago

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
            }
          ),
        ),
      ),
    );
  }
}
ZaharL commented 3 years ago

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.

RRohitM commented 2 years ago

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)

AtixD commented 2 years ago

any updates?

akashpeakmind commented 1 week ago

still having this issue in version: assets_audio_player: ^3.1.1 not able to play asset audio in IOS or web-mobile