I want to use the HTML tag to play the video file in my browser. I have tried with object tag as well as embed tag. Both the things are not working for me. When I was using object tag my browser screen got flickering but the video is not playing.
Is there any way way to solve the problem? How can play the video file in browser?
<html> <object data="flash.mpeg" type="application/x-shockwave-flash" width="800" height="550"> <param name="MOVIE" value="flash.mpeg"> </object> </html>Answer1:
The appropriate mime type for MPEG video is "video/mpeg". Try that instead of "application/x-shockwave-flash" and it should work, provided you have the appropriate codec installed.