我在asp.net MVC中工作。我想在网页中添加视频文件。大多数文件格式是我必须使用的flv
和mp4
。我曾尝试以下将视频嵌入网页
<video src="myvideo.mp4"><video> which works well in Chrome but not in Firefox.
然后我试图ASP.NET视频助手
@Video.Flash(path: "myvideo.mp4",
width: "400",
height: "600",
play: true,
loop: true,
menu: false,
bgColor: "red",
quality: "medium",
scale: "exactfit",
windowMode: "transparent")
而且
@Video.MediaPlayer(
path: "myvideo.mp4",
width: "400",
height: "600",
autoStart: true,
playCount: 2,
uiMode: "full",
stretchToFit: true,
enableContextMenu: true,
mute: false,
volume: 75)
而且
@Video.Silverlight(
path: "myvideo.mp4",
width: "400",
height: "600",
bgColor: "red",
autoUpgrade: true)
但没有什么工作。我已经安装了Web Helper Library
。只有在这些浏览器中出现的错误消息是:“Plugin Missing
”。当我点击“自动搜索缺少的插件”,然后浏览器显示消息“找不到插件”。请指导我如何添加视频(MP4和FLV)到我的网页,以便它可以在任何地方工作。请帮助。