3
Answers

Video is not playing after site is hosted on the server. It is working in Local.

hari Kishan

hari Kishan

13y
2.2k
1

Hello All,
I am facing a problem by playing videos in the server.
The code is as follows:
LLID.Append(
"<object id='WindowMediaPlayer' classid='CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6' >");
LLID.Append(
"codebase='http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701' type=application/x-mplayer2; align=absmiddle");
LLID.Append(
"standby='Loading Microsoft+reg; Windows+reg; Media Player components...' id=mp1 /> ");
LLID.Append(
"<param name='autoStart' value='False'>");
LLID.Append(
"<param name='URL' value=" + Server.MapPath(ConfigurationManager.AppSettings["PathOfVideo"].ToString()) + "> ");
LLID.Append(
"<param name='tooltip' value='Video for Test'>");
LLID.Append(
"<param name='rate' value='1'>");
LLID.Append(
"<param name='Height' value='5'>");
LLID.Append(
"<param name='balance' value='0'>");
LLID.Append(
"<param name='enabled' value='true'>");
LLID.Append(
"<param name='enabledContextMenu' value='true'>");
LLID.Append(
"<param name='fullScreen' value='false'>");
LLID.Append(
"<param name='playCount' value='1'>");
LLID.Append(
"<param name='enabledContextMenu' value='true'>");
LLID.Append(
"<param name='StretchToFit' value='true'>");
LLID.Append(
"<param name=ShowStatusBar value='true'> ");
LLID.Append(
"<param name=ShowPositionControls value= 'true'> ");
LLID.Append(
"<param name=ShowTracker value='true'> ");
LLID.Append(
"<param name=ShowControls value='true'> ");
LLID.Append(
"<param name='volume' value='50'>");
LLID.Append(
"</object>");
This code is working fine in local system . But when upload the site on web server , This code is not working , please help me
Thanks in advance.
Answers (3)