나는 C# 코드가있는 asp.net 사이트를 구축했습니다. 모든 것은 VS에서 내 비디오 태그를 제외하고 IIS7을 사용하는 서버로 퍼블리싱 할 때 작동합니다.iis 서버에 게시 할 때 html5 비디오 태그가 작동하지 않습니다.
로컬로 실행할 때 작동하지만 서버에 게시 할 때 제대로 작동하지 않습니다.
비디오 src는 상대 경로이며 비디오는 솔루션에 포함되어 있으며 웹 서버 폴더에 있습니다. 내 타겟 브라우저는 크롬이지만 이상적으로는 이것으로 제한하고 싶지 않다. 현재 크롬에서 실패하고 다른 어떤 것도 체크하지 않았다.
이로
<table align="center" style="width:100%;height:100%">
<tr>
<td valign="middle" align="center">
<video id="splashVideo" runat="server" width="50%" height="50%" autoplay>
<source src="splash.mp4" type="video/mp4">
</video>
</td>
</tr>
</table>
내가 아래를 제외하고 ocde 다른 포함 havnt HTML 이외의 anythng하지만 아무것도가 적절한 경우 알려 주시기 사용하지 않는 내 비디오 태그, 이것은 아마도 권한 문제 또는 ISS 될 수있다 발행물.
HTML 헤드와 메타 태그
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="mysite.aspx.cs" Inherits="img_mysite" %>
<%@ Register assembly="mysiteCustomButton" namespace="mysiteCustomButton" tagprefix="cc1" %>
<link href="mysite.css" rel="stylesheet" type="text/css" />
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>my site</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
</head>