大家。
我有一个应该播放特定视频的ASP.net页面,但它只适用于Firefox。此页面使用HTML5视频标签进行播放。
这是页面生成的确切HTML。
<!DOCTYPE HTML>
<html>
<head>
<title>MMI Video Play</title>
<style type="text/css">
body, html
{
margin: 0px 0px 0px 0px;
}
</style>
</head>
<body>
<form name="form1" method="post" action="generalVideoPlay.aspx?v=Henry-Ford-Event" id="form1">
<div>
<input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="/wEPDwULLTIwNDExNTQ2NDFkZItFaUIKUt6Do1YOY8xI/g5wUtS6O2VGMvVfY/eqc5NF" />
</div>
<div style="width: 100%; text-align: center; margin-top: 12px;">
<video width='720' height='480' controls>
<source src="files/video/Henry-Ford-Event.mp4" type="video/mp4" />
<source src='files/video/Henry-Ford-Event.ogv' type="video/ogg" />
<!-- fallback to Flash: -->
<object width='720' height='480' type="application/x-shockwave-flash" data="files/resources/player.swf">
<param name="movie" value="files/resources/player.swf" />
<param name="flashvars" value='file=../video/Henry-Ford-Event.mp4&image=poster.jpg' />
<!-- fallback image. note the title field below, put the title of the video there -->
<img src="images/noVideo.jpg" width="720" height="480" alt="No Video Playback" title="No video playback capabilities, please download the video below" />
</object>
</video>
<div style="visibility: hidden; margin-top: 14px; font-family: Arial; margin-top: 18px;"><strong><a href='files/video/Henry-Ford-Event.mp4'>Download Video</a></strong></div>
</div>
</form>
</body>
</html>
以下是我尝试/学过的事情清单。
我真的不知道还有什么可以尝试的。杀死我的是HTML本身就可以工作,但是当我从网站上运行时,它什么都没有。我非常感谢这个问题的答案。
编辑:我也找到了这个页面(http://geekswithblogs.net/ranganh/archive/2011/11/03/making-html5-video-work-with-iis-express.aspx)并且可以安全地说,虽然症状是相同的,但我没有找到流/八位字节MIME类型问题。
答案 0 :(得分:0)
好吧,我设法解决了这个问题。最终我放弃了做纯HTML5并且去了JWPlayer工作得很好。虽然,即使我开始使用它,我仍然无法使事情完美地发挥作用。最后一部分是使用Handbrake再次从DVD中翻录视频并检查“Web优化”选项。与JWPlayer结合,完全解决了我的问题。我希望这能帮助其他一些不得不做网络视频工作的穷人。