Problem in playing videos on intranet portal
-
On my intranet portal,Videos are playing on my system successfully.(Visual studio intalled on my system).But it is not playing on other systems when i host my portal on IIS.But after hosting on my system videos are played.
<embed id='embed1' runat="server" name='mediaPlayer' type='application/x-mplayer2' pluginspage='http://microsoft.com/windows/mediaplayer/en/download/' displaysize='4' autosize='-1' bgcolor='darkblue' showcontrols='true' showtracker='-1' showdisplay='0' showstatusbar='-1' videoborder3d='-1' width='500' height='405' designtimesp='5311' loop='false'>
</embed>protected void DataList1_ItemCommand1(object source, DataListCommandEventArgs e)
{try { if (e.CommandName == "select") { ** embed1.Attributes.Add("src", @"http://~/Uploads4/"); embed1.Attributes.Add("filename", Server.MapPath(e.CommandArgument.ToString())); ** this.modal1.Show();
//problem in bold lines,when i see properties of media player on my system it shows loacl path like c:/inetpub/wwwroot/............/rrr.mpg
} } catch (Exception ex) { Response.Write(ex.ToString()); } }
What problem can be?
-
On my intranet portal,Videos are playing on my system successfully.(Visual studio intalled on my system).But it is not playing on other systems when i host my portal on IIS.But after hosting on my system videos are played.
<embed id='embed1' runat="server" name='mediaPlayer' type='application/x-mplayer2' pluginspage='http://microsoft.com/windows/mediaplayer/en/download/' displaysize='4' autosize='-1' bgcolor='darkblue' showcontrols='true' showtracker='-1' showdisplay='0' showstatusbar='-1' videoborder3d='-1' width='500' height='405' designtimesp='5311' loop='false'>
</embed>protected void DataList1_ItemCommand1(object source, DataListCommandEventArgs e)
{try { if (e.CommandName == "select") { ** embed1.Attributes.Add("src", @"http://~/Uploads4/"); embed1.Attributes.Add("filename", Server.MapPath(e.CommandArgument.ToString())); ** this.modal1.Show();
//problem in bold lines,when i see properties of media player on my system it shows loacl path like c:/inetpub/wwwroot/............/rrr.mpg
} } catch (Exception ex) { Response.Write(ex.ToString()); } }
What problem can be?
You have to convert the server file location to a qualified url I wanted to give you an example, but I couldn't find it. So you build a string, it can be virtual /Movies/moviename.mpg or hard code it http://servername.domainname/movies/moviename.mpg by the way, movie object have 2 sets of parameters, is for firefox, and is for ie. check your object code for the latest version and update it.
-
You have to convert the server file location to a qualified url I wanted to give you an example, but I couldn't find it. So you build a string, it can be virtual /Movies/moviename.mpg or hard code it http://servername.domainname/movies/moviename.mpg by the way, movie object have 2 sets of parameters, is for firefox, and is for ie. check your object code for the latest version and update it.