play.aspx页面代码是
Response.Write(@"http://192.168.1.3/staff/NetWork/"+Session["filepath"].ToString()+"");
播放器页面是代码是
<OBJECT id="MediaPlayer" height="280" width="400" classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6"
VIEWASTEXT>
<PARAM NAME="URL" VALUE="play.aspx">
<PARAM NAME="rate" VALUE="1">
<PARAM NAME="balance" VALUE="0">
<PARAM NAME="currentPosition" VALUE="-1">
<PARAM NAME="defaultFrame" VALUE="">
<PARAM NAME="playCount" VALUE="1">
<PARAM NAME="autoStart" VALUE="-1">
<PARAM NAME="currentMarker" VALUE="0">
<PARAM NAME="invokeURLs" VALUE="-1">
<PARAM NAME="baseURL" VALUE="">
<PARAM NAME="volume" VALUE="50">
<PARAM NAME="mute" VALUE="0">
<PARAM NAME="uiMode" VALUE="mini">
<PARAM NAME="stretchToFit" VALUE="0">
<PARAM NAME="windowlessVideo" VALUE="0">
<PARAM NAME="enabled" VALUE="-1">
<PARAM NAME="enableContextMenu" VALUE="0">
<PARAM NAME="fullScreen" VALUE="0">
<PARAM NAME="SAMIStyle" VALUE="">
<PARAM NAME="SAMILang" VALUE="">
<PARAM NAME="SAMIFilename" VALUE="">
<PARAM NAME="captioningID" VALUE="">
<PARAM NAME="enableErrorDialogs" VALUE="0">
<PARAM NAME="_cx" VALUE="10583">
<PARAM NAME="_cy" VALUE="7408">
</OBJECT>
后台代码是:
string id = Request.QueryString["id2"].ToString();
string sql = "select filepath from N_UpLoadT where id = '"+id+"'";
myclass.OpenDBConnection();
SqlDataReader dr =  myclass.DataReader(sql);
if(dr.Read()){
Session["filepath"] = dr["filepath"].ToString();
}
dr.Close();
myclass.CloseDB();
最上面的ip地址是我本机的地址
但是就不无法播放也没错误 我这台机子是不是还要装什么软件才可以吗?MediaPlayer 软件已经装了