AZURE 中部署的 Web 中的视频出现问题
Issue with videos in a deployed web in AZURE
我在 AZURE 中部署的 webapp 服务有问题,网页中包含的视频无法播放。
留言是下一条:
"The resource you are looking for has been removed, had its name changed, or is temporarily unavailable."
HTML代码是下一个:
<a href="images/Test.mp4" class="popup-vimeo btn-video"><i class="icon-play2"></i></a>
有人能帮帮我吗?
谢谢!
如@Offbeatmammal 所述,在我们的网络应用程序中使用特定文件类型之前,我们需要在网络配置文件中配置 MIME 类型。由于您的视频类型是mp4,您需要在< system.webServer >标签中添加如下配置。
<staticContent>
<mimeMap fileExtension=".mp4" mimeType="video/mp4" />
</staticContent>
好的谢谢!用 web.config 文件解决了!
<configuration>
<system.webServer>
<staticContent>
<mimeMap fileExtension=".mp4" mimeType="video/mp4"/>
<mimeMap fileExtension=".ogv" mimeType="video/ogg"/>
<mimeMap fileExtension=".webm" mimeType="video/webm"/>
</staticContent>
</system.webServer>
我在 AZURE 中部署的 webapp 服务有问题,网页中包含的视频无法播放。
留言是下一条:
"The resource you are looking for has been removed, had its name changed, or is temporarily unavailable."
HTML代码是下一个:
<a href="images/Test.mp4" class="popup-vimeo btn-video"><i class="icon-play2"></i></a>
有人能帮帮我吗?
谢谢!
如@Offbeatmammal 所述,在我们的网络应用程序中使用特定文件类型之前,我们需要在网络配置文件中配置 MIME 类型。由于您的视频类型是mp4,您需要在< system.webServer >标签中添加如下配置。
<staticContent>
<mimeMap fileExtension=".mp4" mimeType="video/mp4" />
</staticContent>
好的谢谢!用 web.config 文件解决了!
<configuration>
<system.webServer>
<staticContent>
<mimeMap fileExtension=".mp4" mimeType="video/mp4"/>
<mimeMap fileExtension=".ogv" mimeType="video/ogg"/>
<mimeMap fileExtension=".webm" mimeType="video/webm"/>
</staticContent>
</system.webServer>