PDA

View Full Version : mp3/wmv/wma files won't play in WMP



jackc
01-31-2008, 03:27 AM
something very wrong here, all the servers running apache 2.2(built by custombuild) can't play mp3/wmv/wma files with WMP. I checked the mime types, all are correct and the files are downloadable, just won't play in WMP or when the media files are embedded in a web page, sometimes it may play for couple seconds then stopped. any idea what's wrong?

GXX
01-31-2008, 08:30 AM
You sure it's not a local desktop issue? Have you tried a different computer?

Post a link, I'll try it if you want.

jackc
01-31-2008, 01:39 PM
my clients reported this problem, i tried it with several computers, it is true.
i sent you the link by PM, please try.

GXX
01-31-2008, 01:42 PM
I'm able to load the link you gave me, but it seems to stop after 2-3 seconds.

How are these files uploaded? Possibly corrupt upload?

jackc
01-31-2008, 01:44 PM
via FTP, i'm sure it's not the file problem, the file can be download completely.
and the problem occur on all the media files, and mutiple clients reported this problem, no idea what's wrong.

jackc
01-31-2008, 01:46 PM
anyone else seeing this problem on their servers?

jackc
01-31-2008, 01:51 PM
I just tried use winamp to play, winamp has no problem playing it while WMP still can't.

jackc
01-31-2008, 03:50 PM
looks like it has something to do with mod_deflate, i disabled mod_deflate, seems WMP is playing now, still investigating why mod_deflate make WMP stop play.

jackc
01-31-2008, 03:53 PM
ok, problem solved. have to add the media file types to the "don't compress list".

sansak
02-01-2008, 10:03 PM
ok, problem solved. have to add the media file types to the "don't compress list".

Hello jackc,

I've still this problem too. I've add some media file types to httpd-deflate.conf to the "don't compress list" as

# Don't compress images and other uncompressible content
SetEnvIfNoCase Request_URI \
\.(?:gif|jpe?g|png|rar|zip|exe|mov|wmv|wma|mp3)$ no-gzip dont-vary

but it's still cant play.

How can I check or solve this problem.

Thank you very much.

jackc
02-02-2008, 04:53 AM
did you restart httpd after you made the change?

if you are testing with wma wmv files, you might want to add mime types for them.

sansak
02-03-2008, 05:54 AM
did you restart httpd after you made the change?

if you are testing with wma wmv files, you might want to add mime types for them.

Dear jackc,

I've alreay restarted httpd, but media file still can't play.
Could you give me some examples that you added in mime types?
And is it correct?
# Don't compress images and other uncompressible content
SetEnvIfNoCase Request_URI \
\.(?:gif|jpe?g|png|rar|zip|exe|mov|wmv|wma|mp3)$ no-gzip dont-vary

Thank you very much for your answer.

jackc
02-03-2008, 07:46 PM
do you have a url that i can test?

sansak
02-04-2008, 01:24 AM
do you have a url that i can test?

Dear jackc,

Thank you for your help.

Sansak

jackc
02-04-2008, 01:58 AM
it looks ok if you open the wmv file directly, but it's not ok when you have it embedded into the web page, so i think the problem is in the php coding.

try use this tool http://cit.ucsf.edu/embedmedia/step1.php

sansak
02-04-2008, 02:38 AM
it looks ok if you open the wmv file directly, but it's not ok when you have it embedded into the web page, so i think the problem is in the php coding.

try use this tool http://cit.ucsf.edu/embedmedia/step1.php

Dear jackc,

Now I can solve this problem. Thank you very much for your help.

Sansak :D

artnet
07-21-2008, 12:55 AM
try use this tool http://cit.ucsf.edu/embedmedia/step1.php

I use this tool for create embed but it still have problem.
My url: http://www.ngocthinh.com.vn/music.html

Follow this topic, I see we have to do 2 step to resolve it:
1. you might want to add mime types for them.
2. have to add the media file types to the "don't compress list".

All thing can do by Direct Admin? or have to ssh to work with file for config it?

Step 1: I guess that is on Advanced Features > Mime Types.
Put MimeType: media - Extension: mp3. That right?
http://www.site-helper.com/misc.html#mime is not tell me clearly.

Can you give me step by step for that, jackc?
I am just a newbie, please help me. Thank so much.

artnet
07-24-2008, 12:08 PM
Finally, everything is okay.
Thank you very much, jackc.