开发者

Object tag is not working

开发者 https://www.devze.com 2023-02-05 21:31 出处:网络
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.

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?

My code:

<html>
<object data="flash.mpeg" type="application/x-shockwave-flash" width="800" height="550">
        <param开发者_JAVA技巧 name="MOVIE" value="flash.mpeg">
</object>
</html>


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消