使用的plupload上传视频,切片大小为50mb,切第一片视频的时候慢就算了,因为要计算总切片数还能理解,但是后面就太慢了。800mb的视频传5min还没传到二分之一,另外设置切片大小为200mb的时候会显示浏览器内存不足就崩溃掉了,设置成50mb浏览器也会偶尔卡顿。有什么好的解决办法吗?用的谷歌浏览器。
$("#uploader").pluploadQueue({ // General settings runtimes : 'flash,html5,gears,browserplus,silverlight,html4', url : "<%=request.getContextPath()%>/upload", unique_names: true, // Maximum file size max_file_size : '1024mb', chunk_size : '50mb', rename : true, dragdrop: true, filters : { // Specify what files to browse for mime_types: [ {title : "Video files", extensions : "mp4,avi,flv"} ] }, flash_swf_url : '<%=request.getContextPath()%>/js/plupload/Moxie.swf', // Silverlight settings silverlight_xap_url : '<%=request.getContextPath()%>/js/plupload/Moxie.xap' , // 参数 multipart_params: {'user': '', 'time': ''}, init : { FileUploaded: function(up, file, info) { // Called when file has finished uploading console.log(info); console.log(info.response); var jsonstr = eval("(" + info.response + ")"); var url=jsonstr.object; document.getElementById("videofile").value=url; $("#uploadMsg").show("上传成功"); }, ChunkUploaded: function(up, file, info) { console.log(info); }, UploadComplete: function(up, files) { console.log("uploadcomplete"); }, Destroy: function(up) { console.log("destory"); }, Error: function(up, args) { console.log(args); } } });