Computing.Net > Forums > Web Development > embeded avi file in wmp

embeded avi file in wmp

Reply to Message Icon

Original Message
Name: USMC
Date: January 17, 2005 at 21:21:39 Pacific
Subject: embeded avi file in wmp
OS: xp
CPU/Ram: 512
Comment:

hey I have a question, when I host a web page and try to play an avi file it plays it with quicktime, is there a way to that same file play with wmp? thanks


Report Offensive Message For Removal

Response Number 1
Name: USMC
Date: January 17, 2005 at 21:56:01 Pacific
Subject: embeded avi file in wmp
Reply: (edit)

by the way I need it to work under firefox


Report Offensive Follow Up For Removal

Response Number 2
Name: Khalid
Date: January 17, 2005 at 22:48:12 Pacific
Subject: embeded avi file in wmp
Reply: (edit)

You dont provide any details about your code, so it is hard to say what is wrong.

First of all, I think you are using the <embed>-tag, wich is not part of HTML or XHTML, but only supported by internet explorer and netscape. You should use the <object>-element instead.

If you are using the object-element, (or the embed-element), you should know that the browser (client) decides wich plugin should be loaded in order to handle the media (or other) data that is linked with the object-element.
You can advise the browser however with the atrribute 'codeType'. Set the value of this attribute to a specific mime-type:
http://www.iana.org/assignments/media-types/

Dont forget to include some code between the object-elements to provide information to browsers that dont support the object-element like:
<object codeType="application" data="file.avi">
<p\>Sorry, you're browser doesnt support objects\</p>
</object>



Report Offensive Follow Up For Removal







Use following form to reply to current message:

   Name: From My Computing.Net Settings
 E-Mail: From My Computing.Net Settings

Subject: embeded avi file in wmp

Comments:

 


  Homepage URL (*): 
Homepage Title (*): 
         Image URL: 
 
Data Recovery Software