在页面中点播放后,在后台生成rstp的地址。然后直接弹出meidaplayer开始播放,而不是在页面上播放。
我用response.redirect("rstp://...");这样直接就会打开一个空白页然后弹出meidaplayer开始播放。

解决方案 »

  1.   

    Response.Redirect("rstp://...");
    Response.Write("<script>window.close();</script>");
      

  2.   

    Response.Redirect("rstp://...");
    Response.Write("<script>window.close();</script>");
    这个是Redirect打开一个页,这个方法好象不是很行的说!
      

  3.   

    Response.Redirect("rstp://...");或用js跳转!!
      

  4.   

    查找了一下,发现这个可以用!
                                url="mms://...";//从数据库取得播放地址
    this.Page.Response.ContentType="audio/x-mpegurl";
    this.Page.Response.Buffer=true;
    this.Page.Response.Clear();
    this.Page.Response.Write(url);
    this.Page.Response.Flush();
    this.Page.Response.Clear();
    不过我想把url改成rstp://要怎么改他的ContentType?