Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Video file not appearing in Firefox?

Status
Not open for further replies.

EdwardMartinIII

Technical User
Sep 17, 2002
1,655
US
I should be smarter than this. Really, I should.

I have been unable to see an embedded video when using Firefox. My code should be really barebones, but it just isn't happening.

The test URL is

and if you go there using IE, you'll probably see a short bit of lovely video. What happens when you go there in Firefox? Have I done something wrong with the object code?

Code:
<object classid="clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95"><param name="FileName" value="Video/PM_ToolCollet_Video.wmv" /></object>

Cheers,


[monkey] Edward [monkey]

"Cut a hole in the door. Hang a flap. Criminy, why didn't I think of this earlier?!" -- inventor of the cat door
 
Add this inbetween your opening and closing object tags:

Code:
<embed type="application/x-mplayer2" pluginspage="[URL unfurl="true"]http://microsoft.com/windows/mediaplayer/en/download/"[/URL] src="Video/PM_ToolCollet_Video.wmv" showcontrols="1" showdisplay="0" showstatusbar="1" width="320" height="285"></embed>

Hope this helps,
Dan

[tt]D'ya think I got where I am today because I dress like Peter Pan here?[/tt]
[banghead]
 
I mention the filename twice?

Do you mean

Code:
<object classid="clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95">
<embed type="application/x-mplayer2" pluginspage="[URL unfurl="true"]http://microsoft.com/windows/mediaplayer/en/download/"[/URL] src="Video/PM_ToolCollet_Video.wmv" showcontrols="1" showdisplay="0" showstatusbar="1" width="320" height="285"></embed>
<param name="FileName" value="Video/PM_ToolCollet_Video.wmv" />
</object>

I understand EMBED has ben deprecated in favor of OBJECT.

Cheers,


[monkey] Edward [monkey]

"Cut a hole in the door. Hang a flap. Criminy, why didn't I think of this earlier?!" -- inventor of the cat door
 

Yes. That's what I mean. The object and param elements are for IE, the embed element for FF.

object and embed elements are not something that I'm immediately familiar with the current standards for - I just found the answer on Google ;o)

Dan


[tt]D'ya think I got where I am today because I dress like Peter Pan here?[/tt]
[banghead]

 
I ended up using

Code:
<object classid="clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95">
  <param name="FileName" value="Video/PM_ToolCollet_Video.wmv" />
  <embed type="application/x-mplayer2" pluginspage="[URL unfurl="true"]http://microsoft.com/windows/mediaplayer/en/download/"[/URL] src="Video/PM_ToolCollet_Video.wmv" showcontrols="1" showdisplay="0" showstatusbar="1" width="320" height="285">
  </embed>
</object>

I am amused at the difference in viewing the video such that I have to specify a height of 285 when the original file (as I understand it) is 240 high.

But it looks great.

Thanks!


[monkey] Edward [monkey]

"Cut a hole in the door. Hang a flap. Criminy, why didn't I think of this earlier?!" -- inventor of the cat door
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top