owncloud-archive / apps

Repo for ownCloud apps. Code here is work in progress and not intended for endusers
373 stars 337 forks source link

Ampache Client can't play more than 2 songs #1390

Closed edwardslabs closed 9 years ago

edwardslabs commented 11 years ago

Details

I am using nginx, mysql 5, php5-fpm and owncloud 5.0.11

Behavior

Ampache clients are able to connect to the service and after approx. 2 songs ~5 minutes. No more music will play until the client is restarted.

I have tested this behavior on Amarok (Windows 7), AmpacheX (iOS), and iAmpache(iOS).

Expected Behavior

Music will be able to play through an ampache client as long as the listener desires limited by network and power of course.

Workaround

apps/media/lib/ampache.php contains two important time values. The first is the timeout between renewing credentials this is originally set to 10 minutes. I reduced this value to 5 minutes.

Also on line 98 $interval is set for 10 minutes. This is the amount of time before expired credentials are removed from the database. Increasing this value will allow an Ampache client to connect for the duration of the $interval but after $interval is expired the client will no longer connect.

It seems that the DB query on line 102 is nuking the active session and after that is nuked the client can no longer retrieve the next song.

Fly0s commented 11 years ago

I can confirm this issue using Owncloud 5.012 and Amarok. Tested from different computers, I always get the following message (approximately translated from French): "An external module is required: application/xml decoder"

Yet, from my multiple researches on the Internet, I have the strong belief that the problem comes from Owncloud and not from the incriminated module. Besides, I observe the same behaviour using Ampache.NET on Android.

PVince81 commented 9 years ago

@MorrisJobke obsolete ?

MorrisJobke commented 9 years ago

I didn't have seen this with the new ampache API.