Welcome to WebmasterWorld Guest from 54.147.0.174

Forum Moderators: incrediBILL

Message Too Old, No Replies

WMV and Firefox

FF cannot play embeded wmv file

     

d40sithui

6:51 pm on Jan 14, 2008 (gmt 0)

5+ Year Member



Hello all,
I have this code to embed a wmv video file on my site. IE can run it just fine. FF does not. Here is the source code(with URL edited). Am I doing something wrong?

<div style="float: right;align:left; margin-right: 5em; margin-left: 5em; margin-top: 4em; margin-bottom: 5px;z-index: -1; "> <embed src="http://www.somewebsite.com/myVideo.wmv" autostart="false" width="259" height="224"></embed> </div>

also, I can't seem to link wmv files via
<a href="http://www.somewebsite.com/myVideo.wmv">View</a>
FF always goes to a page and display weird characters. And it seems to use a lot of system resources after i click on ths link. it froze a few times.

d40sithui

9:06 pm on Jan 14, 2008 (gmt 0)

5+ Year Member



ok i got the first problem solved by moving the file to my own server. but still, if i post a link to a .WMV file and click on it using FF, it will display some weird chars and proceed to freeze.

jdMorgan

10:01 pm on Jan 14, 2008 (gmt 0)

WebmasterWorld Senior Member jdmorgan is a WebmasterWorld Top Contributor of All Time 10+ Year Member



Is your server returning the proper MIME-type for .wmv files in the Content-Type server response header?

For example, on one of my Apache servers, I use


AddType video/avi .avi
AddType video/mpeg .mpeg
AddType video/wmv .wmv

in my .htaccess file to support various video formats.

Jim

d40sithui

3:46 pm on Jan 15, 2008 (gmt 0)

5+ Year Member



Jim,
Thanks for the response. I tried that but it does not seem to work. I forgot to mention this detail earlier. When you click on the link to the wmv file with IE, you get the download box, but with FF the browser displays weird chars.

this is what my htaccess file looks like.


## 26 April for PostNuke
php_flag magic_quotes_gpc on
## USER IP BANNING
<Files *>
deny from 131.158.199.72
deny from 202.75.33.221
</Files>
AddType video/avi .avi
AddType video/mpeg .mpeg
AddType video/wmv .wmv
 

Featured Threads

Hot Threads This Week

Hot Threads This Month