Error playing "song title" prepare failed.: status

General discussions.

Moderator: moderators

Error playing "song title" prepare failed.: status

Postby uhhmoney » Tue Jan 11, 2011 5:05 am

Error playing "song title" prepare failed.: status=0x1 (IOException)

I get this error almost every time I start to play a new song after it has buffered enough to start playing. Anybody else run into this? How do I fix it?
uhhmoney
 
Posts: 2
Joined: Tue Jan 11, 2011 4:30 am

Postby neofreak » Mon Feb 14, 2011 7:38 pm

The same thing happens to me. Sometimes songs will play fine, but more often than not I get:

Prepare failed.: status=0x1 (IOException)

If I hit the play button again it usually plays fine.

(This is with the Android client)
neofreak
 
Posts: 1
Joined: Mon Feb 14, 2011 7:36 pm

Postby aksarfevad » Wed Feb 16, 2011 5:48 am

Confirmed here as well. I did a google search came up with this: http://www.remwebdevelopment.com/dev/a63/Playing-Audio-error-PVMFErrNotSupported-Prepare-failed-status0x1-.html

Sindre: looks like you should be using a FileInputStream. I checked out the Android project source and found (in Rev:2133 line 479):
Code: Select all
            mediaPlayer.setDataSource(file.getPath());

and replaced it with:
Code: Select all
            FileInputStream fis = new FileInputStream(file);
            mediaPlayer.setDataSource(fis.getFD());
and added the import for java.io.FileInputStream . This fixed the issue for me initially, though I'd run it for a few days and on a few servers before assuming it works in all cases.
aksarfevad
 
Posts: 1
Joined: Wed Feb 16, 2011 3:33 am

Postby steveliv » Sat Mar 19, 2011 1:08 am

aksarfevad wrote:Confirmed here as well. I did a google search came up with this: http://www.remwebdevelopment.com/dev/a63/Playing-Audio-error-PVMFErrNotSupported-Prepare-failed-status0x1-.html

Sindre: looks like you should be using a FileInputStream. I checked out the Android project source and found (in Rev:2133 line 479):
Code: Select all
            mediaPlayer.setDataSource(file.getPath());

and replaced it with:
Code: Select all
            FileInputStream fis = new FileInputStream(file);
            mediaPlayer.setDataSource(fis.getFD());
and added the import for java.io.FileInputStream . This fixed the issue for me initially, though I'd run it for a few days and on a few servers before assuming it works in all cases.


does that mean you rebuilt the subsonic android apk? if so can you share? this error is driving me crazy.
steveliv
 
Posts: 8
Joined: Sat Oct 09, 2010 2:18 am

Re: Error playing "song title" prepare failed.: status

Postby rubbersoul » Fri Sep 09, 2011 2:44 pm

i'm having this same issue. it happens to me on wifi and 3g. sometimes it'll play just fine, but often times i'll get this error. i keep pressing play and eventually it will play fine so it isn't the file.

i don't use the web app much, but i've never experienced a problem through the browser so i think it is specific to the android app. this error is driving me crazy as well.
rubbersoul
 
Posts: 127
Joined: Thu Aug 18, 2011 2:27 pm

Re: Error playing "song title" prepare failed.: status

Postby falconey » Wed Sep 21, 2011 12:24 pm

Count me in as having this issue. This is new though, I didn't have this issue in previous versions.
falconey
 
Posts: 6
Joined: Tue Apr 19, 2011 7:16 pm


Return to General

Who is online

Users browsing this forum: No registered users and 20 guests