我用C#开发一个网站,需要有视频播放的功能,我在网上找了一段代码可以实现.avi视频的播放,代码如下:
                ltlVideo.Text = "<OBJECT id=tt90play type=application/x-oleobject height=350 standby=\"Loading Windows Media Player components...\" width=400 classid=CLSID:6BF52A52-394A-11D3-B153-00C04F79FAA6>" +
                   "<PARAM NAME=\"URL\" VALUE=\aa.avi\">" +
                   "<PARAM NAME=\"rate\" VALUE=\"1\">" +
                   "<PARAM NAME=\"balance\" VALUE=\"0\">" +
                   "<PARAM NAME=\"currentPosition\" VALUE=\"0\">" +
                   "<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=\"100\">" +
                   "<PARAM NAME=\"mute\" VALUE=\"0\">" +
                   "<PARAM NAME=\"uiMode\" VALUE=\"full\">" +
                   "<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=\"4763\">" +
                   "<PARAM NAME=\"_cy\" VALUE=\"4763\"></OBJECT>";
此时若视频文件的路径写成绝对路径,即F:/aa.avi可以正常播放,苦写成相对路径,即当前页面的相对路径,则一直显示"正在连接",要过一段时间后才会显示该视频(有时更是不会播放),这是什么原因,要如何解决.请高手帮帮忙