除了我需要的Internet Explorer之外,该视频还可以在其他浏览器(如google chrome,firefox)上播放。我尝试使用其他形式解决问题,但无法解决。
else if (ViewBag.mediatype == "Video")
{
<video width="450" height="600" controls autoplay loop>
<source src="@Url.Action("Video", "Suspicious", new { filename = ViewBag.MediaFile })" type="video/mp4" />
<source src="@Url.Action("Video", "Suspicious", new { filename = ViewBag.MediaFile })" type="video/quicktime" />
</video>
}