i have made a video module in which the user upload a video and video playback in a video tag
<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);
}
}
the particular module works at local but as i install this on Live website the Video doesn’t play. i have inspected the page the url of video as follows at local
http://dc620x_dev2/DesktopModules/DNNCentric-VC_ManageLessions/erf/uyn/2.mp4
and
at live
http://videoclasses.webhostcentric.com/DesktopModules/DNNCentric-VC_ManageLessions/Abc/yeghbf/2.mp4
it shows an error :
The resource you are looking for has been removed, had its name changed, or is temporarily unavailable.
what i am missing or error in code. thanks for any assistence.
Your mp4 file is returning a 404 / file not found error. Either 1) the file is not located at that address or 2) your IIS webserver does not have the proper MIME type listed for mp4 files.
If you know the file exists at that location, check out this Microsoft Article about IIS configuration:
You are using IIS 7.5, but the concept is the same. IS the MIME type set up correctly on your server?