http://topic.csdn.net/u/20081212/16/8aa4a949-5729-46d6-be2f-0dfa45b7ff7d.html我找了个可以播放FLV格式的视频播放器,但是在运行的时候可以播放视频,但是通过IP访问就不行了,内存占有涨到了1.3G,最后就整个IE崩溃了。这是为什么啊??????

解决方案 »

  1.   

    你用的是那个播放器,这应该是你的播放器的问题,还有你的flv文件有多大,这个只能一步步的查,先查一下是不是文件太大,全部读到内存去了,造成占用内存大
      

  2.   

            string video_url = v.Videourl;
            string video_name = video_url.Substring(17, video_url.Length - 17);
            Response.Write("document.write(\"<object classid=\\\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\\\" codebase=\\\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0\\\" width=\\\"490\\\" height=\\\"415\\\">\");");
            Response.Write("document.write(\"<param name=\\\"movie\\\" value=\\\"flvplayer.swf\\\">\");");
            Response.Write("document.write(\"<param name=\\\"quality\\\" value=\\\"high\\\">\");");
            Response.Write("document.write(\"<param name=\\\"allowFullScreen\\\" value=\\\"true\\\" />\");");
            Response.Write("document.write(\"<param name=\\\"FlashVars\\\" value=\\\"vcastr_file=" + video_url + "&vcastr_title=" + video_name + "&IsAutoPlay=1&IsContinue=0&BarPosition=1&IsShowBar=1\\\" />\");");
            Response.Write("document.write(\"<embed src=\\\"flvplayer.swf\\\" allowFullScreen=\\\"true\\\" FlashVars=\\\"vcastr_file=" + video_url + "&vcastr_title=" + video_name + "&IsAutoPlay=1&IsContinue=0&BarPosition=1&IsShowBar=1\\\" quality=\\\"high\\\" pluginspage=\\\"http://www.macromedia.com/go/getflashplayer\\\" type=\\\"application/x-shockwave-flash\\\" width=\\\"240\\\" height=\\\"180\\\"></embed>\");");
            Response.Write("document.write(\"</object>\");");这是我的播放代码?   而且我那视频文件也很小啊,也就 2-3M。最郁闷的是我调试运行的时候可以,但在IIS里访问就那样!~!
      

  3.   

    不清楚原理。http://www.macromedia.com/go/getflashplayer
    如果说读到内存,本机上不一样要读到内存吗?
      

  4.   

    在IIS中注册FLV的MINI类形,具体可以看这篇文章 http://www.juyo.org/juyo/work/IIS-FLV/
      

  5.   

    自己做的flash播放器。是不是你的站点压力过大造成的吧。