[英]Server error while playing a video: HTTP Error 404.3
i have an application where i require to upload a video as: 我有一个需要将视频上传为的应用程序:
html html
<iframe id="frame1" runat="server" visible="false"
style="height: 222px; width: 482px;"></iframe>
Code 码
Finalpath = filepath + filename;
frame1.Visible = true;
frame1.Attributes.Add("src", Finalpath);
but when i load the video Extension Mp4
it shows the error in Iframe
但是当我加载视频扩展
Mp4
它在Iframe
显示了错误
HTTP Error 404.3 - Not Found
The page you are requesting cannot be served because of the extension configuration. 由于扩展程序配置的原因,无法提供您请求的页面。 If the page is a script, add a handler.
如果页面是脚本,请添加处理程序。 If the file should be downloaded, add a MIME map.
如果应下载文件,请添加MIME映射。
how to handle this Server Error and what type(extension) of video i can upload? 如何处理此服务器错误以及可以上传哪种类型的视频(扩展名)? thanks for any assistance..
感谢您的协助。
You should add MIME type for .MP4 format on IIS or in web.config file In Web.Config For IIS 7 you can add this section in configuration. 您应该在IIS或web.config文件中为.MP4格式添加MIME类型。在Web.Config中,对于IIS 7,可以在配置中添加此部分。
<system.webServer>
<staticContent>
<mimeMap fileExtension=".mp4" mimeType="video/mp4" />
</staticContent>
</system.webServer>
You can use HTML 5 <video>
tag to display your .mp4 video 您可以使用HTML 5
<video>
标签显示.mp4视频
<video width="320" height="240" controls="controls">
<source src="movie.mp4" type="video/mp4">
Your browser does not support the video tag.
</video>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.