LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (http://www.linuxquestions.org/questions/linux-server-73/)
-   -   Apache ogg files and music players (http://www.linuxquestions.org/questions/linux-server-73/apache-ogg-files-and-music-players-522816/)

vondoom 01-25-2007 05:54 PM

Apache ogg files and music players
 
Hello everybody!

I have a apache server that runs the mythtvweb interface. On the server i have ogg files in a directory that is "linked" to the web site. When i click on one of the songs firefox presents me with the download file popup and i select what program i want the file to open in. The problem is that when i play songs this way the time bar (seek bar) dissapers on the music player and the remaining time of the song shows 0.
Is it possible to enable something in the apache config that would make the music player show the remaining time?

Is it because the music player streams the file from the server and thus don't know the total size of the file? I have tried to raise the prebuffer values in the music players so it would download the whole file before playing but nothing helps.

I have tried allot of players but none seems to handle this correctly.
xmms,vlc,audacious,mpd,mplayer.

OBS! I posted this on one of the mythtv forums.

Matir 01-26-2007 11:36 AM

If you download the ogg file and then play it from your computer, does it display the time as expected?

vondoom 01-26-2007 02:23 PM

Quote:

If you download the ogg file and then play it from your computer, does it display the time as expected?
Yeah if i select "save to" in firefox and then open the file in my music player it will show the time remaining and i can use the seek bar.

Am i the only one experience this? If you have access to a apache webserver you can test it yourself. Just place an mp3 or ogg under /var/www/htdocs or whatever your webroot is then enter the URL in firefox or directly in xmms or some other music player.

Anyone know if you get the same result from IIS?

Just tried it with Windows Mediaplayer 9 and Illuminable's Ogg directshow filter, looks like wmp behaves as the other players.

Hmm looks like it's a music player feature, if i use xmplayer for windows then i can use the seek bar and see the remaining time of the song. Maybe xmplayer "cache" the song before playing it.

Matir 01-26-2007 03:52 PM

It probably is a matter of not having the entire file at the time it starts. Just like streaming radio can't be fast-forwarded, neither can the streaming file.


All times are GMT -5. The time now is 07:56 PM.