can someone look at my code and advise
I am trying to play a video from a folder instead of youtube
my vidlink works fine in a browser. but will not work with cms.
it is just blank screen.
I try this also
@"\\server\\drive$\\Folder1\\Folder2\\media\\Video_Gallery\\introvideo.mp4
string getPath = CMS.CMSHelper.CMSContext.CurrentAliasPath;
string[] splitPath = getPath.Split('/');
string VidLink = @"\\server\drive$\Folder1\Folder2\media\Video_Gallery\introvideo.mp4";
string DataServImg = "b-data-services.gif", PulseImg = "b-pulse.gif", CatImg = "b-catalyst.gif", SentImg = "b-sentienel.gif", ProfServImg = "b-prof-services.gif";
bool isleftNavSet = false;
if (splitPath.Length >= 1)
{
if (splitPath[1] == "Services")
{
isleftNavSet = true;
if (splitPath.Length > 2)
{
switch(splitPath[2].ToLower())
{
case "pulse":
PulseImg = "b-pulse-o.gif";
VidLink = "http://www.youtube.com/embed/-9Np-k2bz3A?rel=0&autoplay=1&modestbranding=1";
break;
case "catalyst":
CatImg = "b-catalyst-o.gif";
VidLink = "http://www.youtube.com/embed/ICGdUQrxOng?rel=0&autoplay=1&modestbranding=1";
break;
case "sentinel":
VidLink = "http://www.youtube.com/embed/MWSmKblXe1I?rel=0&autoplay=1&modestbranding=1";
SentImg = "b-sentienel-o.gif";
break;
case "data-services":
DataServImg = "b-data-services-o.gif";
break;
case "professional-services":
ProfServImg = "b-prof-services-o.gif";
break;
default:
break;
}
}
}
}
%