我的test.aspx页面要输出一个xml格式的文件,但后缀应该是wsx。Utils.MediaMgr mgr = new MediaPortal.Utils.MediaMgr();
Response.ContentType="text/xml";
Response.Charset = "GB2312";
string t = mgr.BuildWsxFile("1","1","racecar_100.wmv");
Response.Write();可是这么写,并不能指定为wsx格式,mediaplay无法播放。
<js> WindowsMediaPlayer.URL = "http://localhost/PukkaMediaCenter/MediaPortal/test.aspx";
Response.ContentType="text/xml";
Response.Charset = "GB2312";
string t = mgr.BuildWsxFile("1","1","racecar_100.wmv");
Response.Write();可是这么写,并不能指定为wsx格式,mediaplay无法播放。
<js> WindowsMediaPlayer.URL = "http://localhost/PukkaMediaCenter/MediaPortal/test.aspx";
截取后缀名为你想要的格式。