如何在 html 中嵌入 .AVI?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/840355/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
how to embed an .AVI in html?
提问by Stephen Hazel
I've found some examples of .AVI in html on the web.
But my page http://pianocheater.com/VIDEO.htmlis problematic.
我在网上的 html 中找到了一些 .AVI 的例子。
但是我的页面 http://pianocheater.com/VIDEO.html有问题。
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??
在我的电脑上用 chrome 没问题。
在 IE 中,你会在顶部看到那个 dang bar,然后视频是空白的。
它适用于我的电脑,但不适用于其他人,所以我认为它是编解码器或其他什么?
Here's the existing html... (sorry, note sure how to get pretty html in here)
这是现有的 html...(抱歉,请注意如何在此处获得漂亮的 html)
<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.)
我知道 .AVI 会阻止 Mac 用户看到它们。
没关系。我的 MIDI 应用程序没有 mac 版本。
我也知道 .AVI 不能很好地流式传输。
当我转换为 .MOV 或 .WMV 时,音频非常滞后。
(这是一个 MIDI 应用程序 - 声音很重要。)
Any tips or ideas would be most appreciated :)
任何提示或想法将不胜感激:)
采纳答案by cgp
回答by Sietse
Have you tried just using by itself?
您是否尝试过单独使用?
<embed src="img/adg.avi"/>
…but you might be better off just using YouTube or something similar.
......但你最好只使用 YouTube 或类似的东西。