Click here to Skip to main content
16,016,168 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
In asp.net website , Videos are palying well on that system on which website hosted,but these are not palying on others (Clients systems),I have tried more than 3 hours,But I am Unable to undersatand the problem please help me.
embed1.Attributes.Add("src", @"http://~/Uploads4/");
            embed1.Attributes.Add("filename", Server.MapPath(e.CommandArgument.ToString()));
            embed1.Attributes.Add("ShowControls", "1");
 
<embed  runat="server" id="embed1" type="application/x-mplayer2"
 
pluginspage="http://www.microsoft.com/Windows/Downloads/Contents/MediaPlayer/" 
 
width="424" height="379" 
 
 autostart="1" showcontrols="1" showstatusbar="1" videoborder3d='1' designtimesp='5311' loop='true' >
 
</embed>
Posted
Updated 4-Sep-11 19:07pm
v4

1 solution

Try using Server.MapPath to get to the physical path.
e.g. Server.MapPath("~/Uploads4")
 
Share this answer
 
v2
Comments
uspatel 3-Sep-11 5:46am    
I have tried this but now any vedio does not shown
embed1.Attributes.Add("src", Server.MapPath("~//Uploads4//"));
embed1.Attributes.Add("filename", Server.MapPath(e.CommandArgument.ToString()));
embed1.Attributes.Add("ShowControls", "1");

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900