视频点播路径连接问题
弄了一个简单的视频点播,代码如下,1.aspx:
<object classid="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA" class="OBJECT" id="RAOCX" width="500" height="350">
<param name="_ExtentX" value="9843">
<param name="_ExtentY" value="7620">
<param name="AUTOSTART" value="-1">
<param name="SHUFFLE" value="0">
<param name="PREFETCH" value="0">
<param name="NOLABELS" value="0">
<param name="SRC" value="<%=Session["address"] %>">
<param name="CONTROLS" value="imagewindow">
<param name="CONSOLE" value="Clip1">
<param name="LOOP" value="0">
<param name="NUMLOOP" value="0">
<param name="CENTER" value="0">
<param name="MAINTAINASPECT" value="0">
<param name="BACKGROUNDCOLOR" value="#000000">
</object>
<object classid="clsid:CFCDAA03-8BE4-11CF-B84B-0020AFBBCCFA" height="28" id="video2" width="500">
<param name="_ExtentX" value="9843">
<param name="_ExtentY" value="741">
<param name="AUTOSTART" value="-1">
<param name="SHUFFLE" value="0">
<param name="PREFETCH" value="0">
<param name="NOLABELS" value="0">
<param name="SRC" value="<%=Session["address"] %>">
<param name="CONTROLS" value="controlpanel">
<param name="CONSOLE" value="Clip1">
<param name="LOOP" value="0">
<param name="NUMLOOP" value="0">
<param name="CENTER" value="0">
<param name="MAINTAINASPECT" value="0">
<param name="BACKGROUNDCOLOR" value="#000000">
</object>
1.aspx.cs:
protected void Page_Load(object sender, EventArgs e)
{
//string addr = Request.QueryString["address"];
string path = @"D:\film\中华英雄\2.rmvb";
Session["address"] = path;
}
如果采用string path = @"D:\film\中华英雄\2.rmvb";视频能够连接正常播放;但如果采用另外一个页面传过来的值string addr = Request.QueryString["address"];如下
protected void Page_Load(object sender, EventArgs e)
{
string addr = Request.QueryString["address"];
//string path = @"D:\film\中华英雄\2.rmvb";
Session["address"] = addr;
}
那么视频播放界面是出来了,就是不能播放,没有反应。请问,这到底是怎么回事呢?谢谢了先!
[[italic] 本帖最后由 天地乾坤 于 2007-11-28 11:23 编辑 [/italic]]