Click here to Skip to main content
15,906,708 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
i want to play a video of any type and in any broswer how to do this
i have written code for this as

XML
<video width="320" height="240" controls="controls"> 
   <source src=""="Video/MySampleVideo.ogg" type="video/ogg" />  
   <source src="Video/MySampleVideo.mp4" type="video/mp4" /> 
   <source src="Video/MySampleVideo.webm" type="video/webm" />   
   <source src="Video/MySampleVideo.avi" type="video/avi" />     
   <source src="Video/MySampleVideo.flv" type="video/flv" />
   <object width="320" height="240" src="Video/MySampleVideo.mp4">
      <embed width="320" height="240" src="Video/MySampleVideo.flv">
         Your browser does not support video
      </embed>
   </object>
</video>


but it is not working ,Please help
I am not using html 5. Is there any other code
Posted
Updated 20-Feb-12 4:42am
v3

you are trying to play video in html5 format. consider that not all browsers support this, and not all browsers support all formats.

see this link :
HTML5 Video

--------------
Regards

H.Maadani
 
Share this answer
 
The video tag was introduced in HTML5. So it will only be displayed in HTML5 supported browsers.

For other browsers, you can use flash videos. But this requires users to install the flash player. And that is tricky to implement. (Honestly I do not know how to play audio/video using flash, I just know it can be done.)
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900