Ampache

Pour l'Amour de la Musique

introduction

You are not logged in.

Announcement

- Forums Updated 12/27/2008 -

Please read the Rules before posting. Also please always update to the latest stable release before submitting a bug report. If you are using a development release please update to the latest SVN.

Useful Links

#1 2008-09-23 17:59:48

trrichard
Closet Fan
Registered: 2008-09-23
Posts: 8
Reputation :   
Website

Streaming Play is not functioning

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

 

#2 2008-09-24 01:45:35

vollmerk
Lead Developer
From: Corvallis, OR
Registered: 2004-09-25
Posts: 3091
Ampache Version: Newer then SVN
MySQL Version: 5.x
PHP Version: 5.2.x
Reputation :   38 
Website

Re: Streaming Play is not functioning

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

 

#3 2008-09-24 03:41:47

vetto
Roadie
Registered: 2008-01-15
Posts: 241
Ampache Version: v.3.5-Alpha1 (Build 001)
MySQL Version: 5.0.45-1
PHP Version: 5.2.3-1
Reputation :   

Re: Streaming Play is not functioning

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

 

#4 2008-09-24 09:54:16

trrichard
Closet Fan
Registered: 2008-09-23
Posts: 8
Reputation :   
Website

Re: Streaming Play is not functioning

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

 

#5 2008-09-24 10:03:50

trrichard
Closet Fan
Registered: 2008-09-23
Posts: 8
Reputation :   
Website

Re: Streaming Play is not functioning

Also when i attempt to save a set of songs as a playlist the playlist created is empty.

Offline

 

#6 2008-09-24 15:03:29

vetto
Roadie
Registered: 2008-01-15
Posts: 241
Ampache Version: v.3.5-Alpha1 (Build 001)
MySQL Version: 5.0.45-1
PHP Version: 5.2.3-1
Reputation :   

Re: Streaming Play is not functioning

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

 

#7 2008-09-24 16:40:16

trrichard
Closet Fan
Registered: 2008-09-23
Posts: 8
Reputation :   
Website

Re: Streaming Play is not functioning

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

 

#8 2008-09-25 00:07:16

vollmerk
Lead Developer
From: Corvallis, OR
Registered: 2004-09-25
Posts: 3091
Ampache Version: Newer then SVN
MySQL Version: 5.x
PHP Version: 5.2.x
Reputation :   38 
Website

Re: Streaming Play is not functioning

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

 

#9 2008-09-25 09:04:03

trrichard
Closet Fan
Registered: 2008-09-23
Posts: 8
Reputation :   
Website

Re: Streaming Play is not functioning

Yea, its not the mime types I tried the server on a brand new ie and firefox install on windows, still no results.

Offline

 

#10 2008-09-25 09:13:47

vollmerk
Lead Developer
From: Corvallis, OR
Registered: 2004-09-25
Posts: 3091
Ampache Version: Newer then SVN
MySQL Version: 5.x
PHP Version: 5.2.x
Reputation :   38 
Website

Re: Streaming Play is not functioning

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

 

#11 2008-09-26 11:27:08

trrichard
Closet Fan
Registered: 2008-09-23
Posts: 8
Reputation :   
Website

Re: Streaming Play is not functioning

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

 

#12 2008-09-27 05:47:36

Pope Viper
Band Promoter
From: Texas, USA
Registered: 2008-01-10
Posts: 302
Ampache Version: 3.4.2
MySQL Version: 5.1
PHP Version: 5.2.5
Reputation :   

Re: Streaming Play is not functioning

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

 

#13 2008-09-27 16:34:24

trrichard
Closet Fan
Registered: 2008-09-23
Posts: 8
Reputation :   
Website

Re: Streaming Play is not functioning

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

 

#14 2008-09-27 17:19:27

Pope Viper
Band Promoter
From: Texas, USA
Registered: 2008-01-10
Posts: 302
Ampache Version: 3.4.2
MySQL Version: 5.1
PHP Version: 5.2.5
Reputation :   

Re: Streaming Play is not functioning

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

 

#15 2008-09-27 18:48:24

trrichard
Closet Fan
Registered: 2008-09-23
Posts: 8
Reputation :   
Website

Re: Streaming Play is not functioning

We can arrange that, drop me an email.

Offline

 

#16 2008-10-17 02:56:48

mulb
Closet Fan
Registered: 2007-01-15
Posts: 8
Reputation :   

Re: Streaming Play is not functioning

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

 

#17 2008-12-30 20:08:25

tep47
Member
Registered: 2008-12-30
Posts: 4
Ampache Version: 3.4.4
MySQL Version: Ver 14.12 Distrib 5.0.51a
PHP Version: 5.2.6
Reputation :   

Re: Streaming Play is not functioning

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

 

#18 2008-12-31 08:53:58

vollmerk
Lead Developer
From: Corvallis, OR
Registered: 2004-09-25
Posts: 3091
Ampache Version: Newer then SVN
MySQL Version: 5.x
PHP Version: 5.2.x
Reputation :   38 
Website

Re: Streaming Play is not functioning

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

 

#19 2008-12-31 10:07:14

tep47
Member
Registered: 2008-12-30
Posts: 4
Ampache Version: 3.4.4
MySQL Version: Ver 14.12 Distrib 5.0.51a
PHP Version: 5.2.6
Reputation :   

Re: Streaming Play is not functioning

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

 

#20 2008-12-31 10:09:01

blammo
Closet Fan
Registered: 2008-10-13
Posts: 12
Reputation :   

Re: Streaming Play is not functioning

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

 

#21 2008-12-31 12:30:28

blammo
Closet Fan
Registered: 2008-10-13
Posts: 12
Reputation :   

Re: Streaming Play is not functioning

Footnote: updated to 3.4.4 - no change in behavior..

Offline

 

#22 2008-12-31 13:06:17

vollmerk
Lead Developer
From: Corvallis, OR
Registered: 2004-09-25
Posts: 3091
Ampache Version: Newer then SVN
MySQL Version: 5.x
PHP Version: 5.2.x
Reputation :   38 
Website

Re: Streaming Play is not functioning

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

 

#23 2008-12-31 13:40:29

tep47
Member
Registered: 2008-12-30
Posts: 4
Ampache Version: 3.4.4
MySQL Version: Ver 14.12 Distrib 5.0.51a
PHP Version: 5.2.6
Reputation :   

Re: Streaming Play is not functioning

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

 

#24 2008-12-31 14:40:15

vollmerk
Lead Developer
From: Corvallis, OR
Registered: 2004-09-25
Posts: 3091
Ampache Version: Newer then SVN
MySQL Version: 5.x
PHP Version: 5.2.x
Reputation :   38 
Website

Re: Streaming Play is not functioning

I've found that the 'ask' me doesn't actually do that. Try creating a new profile.

Offline

 

#25 2008-12-31 14:45:28

tep47
Member
Registered: 2008-12-30
Posts: 4
Ampache Version: 3.4.4
MySQL Version: Ver 14.12 Distrib 5.0.51a
PHP Version: 5.2.6
Reputation :   

Re: Streaming Play is not functioning

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

 

Board footer

Powered by PunBB and MyBestBB

range