我制作了一个视频模块,其中用户在视频标签中上传视频和视频播放
<video id="Video1" runat="server" controls="controls" autoplay tabindex="5" visible="false"
class="video-js vjs-default-skin" data-setup="{}">
<source id="Source1" runat="server" type="video/mp4" />
<source id="Source2" runat="server" type="video/flv" />
</video>
。CS
public void getExtension(string Filename)
{
string Extension = "";
Extension = Path.GetExtension(Filename);
if (Extension == ".mp4")
{
Source1.Attributes.Add("src", Finalpath);
}
else if (Extension == ".flv")
{
Source2.Attributes.Add("src", Finalpath);
}
}
特定模块在本地工作,但当我在 Live 网站上安装它时,视频无法播放。我已经在本地检查了页面视频的网址,如下所示
http://dc620x_dev2/DesktopModules/DNNCentric-VC_ManageLessions/erf/uyn/2.mp4
并在现场
http://videoclasses.webhostcentric.com/DesktopModules/DNNCentric-VC_ManageLessions/Abc/yeghbf/2.mp4
它显示一个错误:
The resource you are looking for has been removed, had its name changed, or is temporarily unavailable.
我在代码中缺少什么或错误。感谢您的帮助。