如何在HTML中嵌入.AVI? [英] how to embed an .AVI in html?

查看:265
本文介绍了如何在HTML中嵌入.AVI?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在网上的html中发现了一些.AVI的例子。

但是我的页面 http://pianocheater.com/VIDEO.html 有问题。

在我的电脑上使用chrome很好。 />
在IE中,你可以在顶部看到dang bar,然后这些视频是空白
的。

它适用于我的电脑,但不适用于其他电脑,所以我想它会是编解码器或者什么的。

这里是现有的html ...(对不起,请注意如何在这里获得漂亮的html)

 < object width = 288 height = 512 
id =MediaPlayer
type =application / x-oleobject
standby =加载Windows Media Player组件...
classid =CLSID:22D6f312-B0F6-11D0-94AB-0080C74C7E95
codebase =http://activex.microsoft。 com / activex / controls / mplayer /
en / nsmp2inf.cab#版本= 6,4,7,1112>
< param name =showControlsvalue =true>
< param name =autoStartvalue =false>
< param name =filenamevalue =img / adg.avi>
< embed width = 288 height = 512 src =img / adg.avi
type =application / x-mplayer2showControls = 1 autoStart = 0>< / embed>
< / object>

我知道.AVI会让mac用户看不到他们。

没关系。
我的midi应用程序没有mac版本。

我也知道.AVI不能很好地传输。

当我转换为.MOV或.WMV时,音频

(这是一个midi应用 - 声音很重要)

任何提示或想法都是最重要的赞赏:)

解决方案



将视频转换为FLV并使用开源 JW 播放器播放。您可以使用开源 fmpeg 转换视频。 (有很多免费的GUI前端到ffmpeg)


I've found some examples of .AVI in html on the web.
But my page http://pianocheater.com/VIDEO.html is problematic.

It's fine with chrome on my pc.
In IE, you get that dang bar at the top and then the videos are blank after that.
It works on my pc, but not others' so I figured it'd be codecs or something??

Here's the existing html... (sorry, note sure how to get pretty html in here)

<object width=288 height=512
  id      ="MediaPlayer"
  type    ="application/x-oleobject"
  standby ="Loading Windows Media Player components..."
  classid ="CLSID:22D6f312-B0F6-11D0-94AB-0080C74C7E95"
  codebase="http://activex.microsoft.com/activex/controls/mplayer/
            en/nsmp2inf.cab#Version=6,4,7,1112">
  <param name="showControls" value="true">
  <param name="autoStart"    value="false">
  <param name="filename"     value="img/adg.avi">
  <embed width=288 height=512  src="img/adg.avi"
         type="application/x-mplayer2" showControls=1 autoStart=0></embed>
 </object>

I know that .AVI will keep mac people from seeing em.
That's ok. My midi app doesn't have a mac version.
I also know that .AVIs don't stream well.
When I convert to .MOV or .WMV the audio lags terribly.
(And this is a midi app - sound is important.)

Any tips or ideas would be most appreciated :)

解决方案

This is done a lot easier in flash.

Convert the video to FLV and use the open source JW player to play it. You can convert the video using the open source ffmpeg. (There are a lot of free GUI front-ends to ffmpeg)

这篇关于如何在HTML中嵌入.AVI?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆