You are not logged in.
In my ampache 3.4 install, after selecting a song or multiple songs if i chose "play" from the playlist box the page merely reloads. I am running Ubuntu OS, firefox 3.0 and javascript is enabled, my popup blocker and add-blocker have both been disabled. Any help getting this function to work would be greatly appreciated. Thank You.
Offline
This is most likely because your mime types are messed up try removing the mime type defintions in your web browser. It's most likely sending the playlist to a player that A) doesn't work B) doesn't exist C) can't understand the playlist type that's being sent cause it's configured incorrectly
Offline
Karl is more than likely correct. I ran a similar box and could not stream (amarok could not recognize the stream for one). Not sure what fixed it, but now it works. I am running Debian Lenny (ditched Ubunutu a while back).
Offline
I went to [in my browser] Edit > Preferences > Applications, selected "xspf" and changed the value to ask always, yet it produced no effect. Ampache is not issuing the .xspf file. I also tried this with ".m3u" files. It was also not successful. logging is enabled but i see no errors.
Offline
Also when i attempt to save a set of songs as a playlist the playlist created is empty.
Offline
I lied ... it still dosent stream. I have to click the "play" button in Ampache with the stream selection made (vice flash) and then FF prompts me to open or save. I have found no application yet that will play the stream. However if I choose save and then open the m3u file with amarok it plays/streams just fine. I usually use the "flash player" on the linux box and the stream option at work with M$ media player.
Sorry, but I havn't found anyone that can "stream" to an installed linux player without first saving the m3u file.
Offline
Vito: On other (linux systems) i have had success with xmms, totem, mplayer (with configuration) and the ever popular Video Lan Client (vlc)
Others: It still doesn't work
Offline
In linux I use xmms, mpd, audacious (not recommended) and sometimes vlc. In windows WMP and winamp. All of those work just fine for me. Just a matter of getting the mime type configuration correct in FF/IE
-Karl
Offline
Yea, its not the mime types I tried the server on a brand new ie and firefox install on windows, still no results.
Offline
By default firefox is broken... Anyway like I said I know for sure that ampache works perfectly fine (latest stable) with all of the above mentioned stuff. It's either your configuration or your media players.
I would recommend trying different playlist types and or making sure that you've actually got your mime types correctly defined and they are working as you would expect. If you remove or force it to download the m3u and then try the urls in that, that'll tell you it's your firefox configuration.
If you are wondering if it's even prompting firefox for a m3u then install firebug and watch the ajax requests you will see one when you click the play button which will contain javascript to refresh an iframe. That is what kicks off the m3u
I am 99.99% positive this is not a bug with ampache
Offline
It's looking like it might be my php actually. Upon doing a full mp3 song download, the site returned songname.mp3 but the contents of the file (when opened with a text editor) were as follows:
<br />
<b>Fatal error</b>: Allowed memory size of 25165824 bytes exhausted (tried to allocate 102400001 bytes) in <b>/mnt/www/music/play/index.php</b> on line <b>246</b><br />
I believe it may be a ram allocation error in php perhaps?
Offline
I would definitely say that's your problem.
Check in your PHP.INI, and look for "memory_limit"
Here's a good article on it.
http://www.ducea.com/2008/02/14/increas … ory-limit/
Offline
That was a great article, I had to increase my memory size to 150mb is that normal? I can download songs now, but apparently thats not the problem with streaming because i still cannot play media.
Offline
I wouldn't worry about it too much.
Mine's at 512mb. :)
Let me ponder on your streaming issue.
To be honest, I'd like to see it "in person", if possible.
Offline
We can arrange that, drop me an email.
Offline
Hi,
I have partially the same problem :
when I set auth_methods = "mysql", streaming works perfectly, but when I set it to http, then, it does not stream anything.
But I think the real problem is that the playlist is not kept : when I browse on my ampache site, it does not keep the playlist when http, and it keeps it when mysql.
Hope this can help
Mulb
Offline
I just installed ampache 3.4.4 and have this same problem. I can't stream playlists. My server is Fedora 9, Apache 2.2.9, PHP 5.2.6. I grabbed the tar.gz install file from ampache.org. My client is Ubuntu 8.10, FF 3.0.5. I know its not an issue with mime types, as I can download m3u files just fine using either jinzora or zina. I enabled logging in ampache, but don't see anything in there (other than Error unable to read session from key a45p7svgugnu6251enoinoero2 no data found ).
I tried to use Firebug to watch what's going on when I click on the play button, but I'm not 100% sure what I'm looking for. I looked in the console, but didn't see anything related to trying to download an m3u file. Any help troubleshooting this is much appreciated. Thanks.
Offline
http://ampache.org/wiki/support#enabling_logging
for enabling logging. and please describe what you mean by "I can't stream playlist" exactly what happens? do you get a playlist? does your media player load it? does the error occur when you try to play a song? If so what do the logs say?
Mulb which version of ampache?
Offline
vollmerk wrote:
http://ampache.org/wiki/support#enabling_logging
for enabling logging.
I had already done that, and like I said, I only see the one error in the logs. test.php checks out fine.
vollmerk wrote:
and please describe what you mean by "I can't stream playlist" exactly what happens? do you get a playlist? does your media player load it? does the error occur when you try to play a song? If so what do the logs say?
Mulb which version of ampache?
Sorry, I should have been more specific. I create a playlist and click on the play button. Firefox appears to load something, the Ampache logo has blue progress bars appear near it, then it stops loading and nothing happens. There's no playlist. I'm not prompted to download an m3u file or anything. I have amarok open, but nothing happens in there. Here's a 2mb ogg video of what happens. Any tips for debugging in firebug? Thanks.
Offline
I hate to be a "me too" but it's broken for me as well. It did function at one time, which makes me suspect either an RPM related change, or a browser related change.
I can log in, browse around, add things to the playlist, but when I push "play" the browser refreshes, and nothing happens.
Here's ampache log (debug 5) and access_log errors_log from login to failure to play.. seems empty..
------------------------------------
==> ampache.20081231.log <==
2008-12-31 10:07:04 { } ( SESSION ) - Error unable to read session from key 8qg0f9nvarpcbqno2l737q4np0 no data found
==> /var/log/httpd/access_log <==
XXX.XXX.XXX.224 - - [31/Dec/2008:10:07:04 -0800] "POST //login.php HTTP/1.1" 302 - "http://ampache.MYSITE.COM//login.php" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/525.19 (KHTML, like Gecko) Chrome/1.0.154.36 Safari/525.19"
XXX.XXX.XXX.224 - - [31/Dec/2008:10:07:04 -0800] "GET //index.php HTTP/1.1" 200 16255 "http://ampache.MYSITE.COM//login.php" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/525.19 (KHTML, like Gecko) Chrome/1.0.154.36 Safari/525.19"
XXX.XXX.XXX.224 - - [31/Dec/2008:10:07:04 -0800] "GET //util.php HTTP/1.1" 200 - "http://ampache.MYSITE.COM//index.php" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/525.19 (KHTML, like Gecko) Chrome/1.0.154.36 Safari/525.19"
XXX.XXX.XXX.224 - - [31/Dec/2008:10:07:04 -0800] "GET //server/ajax.server.php?page=index&action=random_albums HTTP/1.1" 200 9129 "http://ampache.MYSITE.COM//index.php" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/525.19 (KHTML, like Gecko) Chrome/1.0.154.36 Safari/525.19"
XXX.XXX.XXX.224 - - [31/Dec/2008:10:07:04 -0800] "GET //image.php?thumb=3&id=597 HTTP/1.1" 200 32641 "http://ampache.MYSITE.COM//index.php" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/525.19 (KHTML, like Gecko) Chrome/1.0.154.36 Safari/525.19"
XXX.XXX.XXX.224 - - [31/Dec/2008:10:07:04 -0800] "GET //image.php?thumb=3&id=89 HTTP/1.1" 200 25298 "http://ampache.MYSITE.COM//index.php" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/525.19 (KHTML, like Gecko) Chrome/1.0.154.36 Safari/525.19"
XXX.XXX.XXX.224 - - [31/Dec/2008:10:07:04 -0800] "GET //image.php?thumb=3&id=632 HTTP/1.1" 200 9269 "http://ampache.MYSITE.COM//index.php" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/525.19 (KHTML, like Gecko) Chrome/1.0.154.36 Safari/525.19"
XXX.XXX.XXX.224 - - [31/Dec/2008:10:07:04 -0800] "GET //image.php?thumb=3&id=481 HTTP/1.1" 200 22354 "http://ampache.MYSITE.COM//index.php" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/525.19 (KHTML, like Gecko) Chrome/1.0.154.36 Safari/525.19"
XXX.XXX.XXX.224 - - [31/Dec/2008:10:07:04 -0800] "GET //image.php?thumb=3&id=855 HTTP/1.1" 200 94792 "http://ampache.MYSITE.COM//index.php" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/525.19 (KHTML, like Gecko) Chrome/1.0.154.36 Safari/525.19"
XXX.XXX.XXX.224 - - [31/Dec/2008:10:07:04 -0800] "GET //image.php?thumb=3&id=457 HTTP/1.1" 200 64592 "http://ampache.MYSITE.COM//index.php" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/525.19 (KHTML, like Gecko) Chrome/1.0.154.36 Safari/525.19"
----------- LOGGED IN now ADD a song --------------------
XXX.XXX.XXX.224 - - [31/Dec/2008:10:07:18 -0800] "GET //server/ajax.server.php?action=basket&type=song&id=9708 HTTP/1.1" 200 3821 "http://ampache.MYSITE.COM//index.php" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/525.19 (KHTML, like Gecko) Chrome/1.0.154.36 Safari/525.19"
------- ADD A SONG completed now press PLAY -----------
XXX.XXX.XXX.224 - - [31/Dec/2008:10:07:29 -0800] "GET //server/ajax.server.php?page=stream&action=basket HTTP/1.1" 200 227 "http://ampache.MYSITE.COM//index.php" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/525.19 (KHTML, like Gecko) Chrome/1.0.154.36 Safari/525.19"
XXX.XXX.XXX.224 - - [31/Dec/2008:10:07:29 -0800] "GET //util.php HTTP/1.1" 302 - "http://ampache.MYSITE.COM//index.php" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/525.19 (KHTML, like Gecko) Chrome/1.0.154.36 Safari/525.19"
XXX.XXX.XXX.224 - - [31/Dec/2008:10:07:29 -0800] "GET //stream.php?action=basket&playlist_method= HTTP/1.1" 200 182 "http://ampache.MYSITE.COM//index.php" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/525.19 (KHTML, like Gecko) Chrome/1.0.154.36 Safari/525.19"
------- PLAY PRESSED -- NO RESULTS -- hit it again and again!
XXX.XXX.XXX.224 - - [31/Dec/2008:10:07:42 -0800] "GET //server/ajax.server.php?page=stream&action=basket HTTP/1.1" 200 227 "http://ampache.MYSITE.COM//index.php" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/525.19 (KHTML, like Gecko) Chrome/1.0.154.36 Safari/525.19"
XXX.XXX.XXX.224 - - [31/Dec/2008:10:07:42 -0800] "GET //util.php HTTP/1.1" 302 - "http://ampache.MYSITE.COM//index.php" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/525.19 (KHTML, like Gecko) Chrome/1.0.154.36 Safari/525.19"
XXX.XXX.XXX.224 - - [31/Dec/2008:10:07:42 -0800] "GET //stream.php?action=basket&playlist_method= HTTP/1.1" 200 182 "http://ampache.MYSITE.COM//index.php" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/525.19 (KHTML, like Gecko) Chrome/1.0.154.36 Safari/525.19"
XXX.XXX.XXX.224 - - [31/Dec/2008:10:07:43 -0800] "GET //server/ajax.server.php?page=stream&action=basket HTTP/1.1" 200 227 "http://ampache.MYSITE.COM//index.php" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/525.19 (KHTML, like Gecko) Chrome/1.0.154.36 Safari/525.19"
XXX.XXX.XXX.224 - - [31/Dec/2008:10:07:43 -0800] "GET //util.php HTTP/1.1" 302 - "http://ampache.MYSITE.COM//index.php" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/525.19 (KHTML, like Gecko) Chrome/1.0.154.36 Safari/525.19"
XXX.XXX.XXX.224 - - [31/Dec/2008:10:07:44 -0800] "GET //stream.php?action=basket&playlist_method= HTTP/1.1" 200 182 "http://ampache.MYSITE.COM//index.php" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/525.19 (KHTML, like Gecko) Chrome/1.0.154.36 Safari/525.19"
XXX.XXX.XXX.224 - - [31/Dec/2008:10:07:44 -0800] "GET //server/ajax.server.php?page=stream&action=basket HTTP/1.1" 200 227 "http://ampache.MYSITE.COM//index.php" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/525.19 (KHTML, like Gecko) Chrome/1.0.154.36 Safari/525.19"
XXX.XXX.XXX.224 - - [31/Dec/2008:10:07:45 -0800] "GET //util.php HTTP/1.1" 302 - "http://ampache.MYSITE.COM//index.php" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/525.19 (KHTML, like Gecko) Chrome/1.0.154.36 Safari/525.19"
XXX.XXX.XXX.224 - - [31/Dec/2008:10:07:45 -0800] "GET //stream.php?action=basket&playlist_method= HTTP/1.1" 200 182 "http://ampache.MYSITE.COM//index.php" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/525.19 (KHTML, like Gecko) Chrome/1.0.154.36 Safari/525.19"
--------- PRESSED REPEATEDLY -- no results
Offline
Footnote: updated to 3.4.4 - no change in behavior..
Offline
Ahh ok... that's a mime type issue with your browser, I've found that upgrades of Ubuntu or firefox in general completely f's up the mime types assoication with m3us so it sends the m3us to a non-working player. Fix your mime types and it should work again
Offline
I hate to be a nag, but what else do I need to do to fix my mime types? In Firefox, under Edit\Preferences\Applications, I've got just about everything set to "Ask me", yet I never get asked. I'll search around to see if there are ways to debug these mime type issues in Firefox.
Offline
I've found that the 'ask' me doesn't actually do that. Try creating a new profile.
Offline
I ended up fixing the mime types in Firefox. In the preferences, under Applications, I typed in mp3. There were a few mime types set to use a plugin I didn't recognize. I changed them all to "ask me", and it now works perfectly!!
Also, not sure if this changed anything or not, but I changed these settings in about:config to the following:
plugin.disable_full_page_plugin_for_types;video/x-ms-wmv,audio/mpegurl,audio/x-mpegurl
browser.download.hide_plugins_without_extensions;false
( I based those changes off this old link).
Thanks again. Glad to have solved this issue.
Last edited by tep47 (2008-12-31 14:46:22)
Offline