Jump to content

Getting around the Firefox wmv streaming problem


SubFighterMax

Recommended Posts

This code seems to work just fine when I view the page in IE. But when I view it in Firefox, the embedded WMP just says "Ready" and the play button does nothing.

 

<OBJECT ID='NSPlay' WIDTH='400' HEIGHT='300' CLASSID='CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95' STANDBY='Loading Windows Media Player components...' TYPE='application/x-oleobject'>
<PARAM NAME='FileName' VALUE='video_play_2416.wmv'>
<PARAM NAME='AutoSize' VALUE='0'>
<PARAM name='AutoStart' VALUE='1'>
<PARAM name='ShowControls' VALUE='1'>
<PARAM name='ShowDisplay' VALUE='0'>
<param name='ShowStatusBar' value='1'>
<EMBED TYPE='application/x-mplayer2' SRC='video_play_2416.wmv' NAME='NSPlay' WIDTH='400' HEIGHT='300' AutoSize='1' AutoStart='1' ShowControls='1' ShowDisplay='0' ShowStatusBar='1'></EMBED>
</OBJECT>

 

video_play_2416.wmv converts to video_get.php?id=2416 in my .htaccess. Here is the basic code for the video_get.php:

 

<?
header("Content-Type: video/x-ms-wmv");
header("Accept-Ranges: bytes");
header("Content-Length: ".filesize("video_$id.wmv"));
header("Content-Disposition: attachment; filename=\"video_$id.wmv\"");
readfile("video_$id.wmv");
?>

 

It works fine in Firefox if I link it directly to the wmv, but doesn't work if it has to go through the script. Works fine both ways in IE. I Google'd around and all I have found is that other people seem to be having the same problem. Does anyone have a way to make it work for Firefox?

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.