【问题标题】:Plupload: Can't upload video iphone ios 8.3Plupload:无法上传视频iphone ios 8.3
【发布时间】:2015-04-13 18:22:46
【问题描述】:

无法在 ios 8.3 iphone 上使用 plupload 上传视频。 问题是我不会收到 FilesAdded 事件。 代码适用于同一部手机上的图像上传,并且代码在 mac 上的 google chrome 中运行良好。

that.videoUploader = new plupload.Uploader({
  browse_button: that.videoUploadBtn.get(0),
  url: 'video-upload'
  runtimes: 'html5,flash',
  flash_swf_url: 'js/Moxie.swf',
  // multiple_queues : false,
  multi_selection : false,
  // max_file_size : '100mb',
  // max_file_count : 1,
  // chunk_size: '200kb',
  // max_retries: 3,
  autostart: true,
  filters : [
    { title : "Image files", extensions : "mp4" }
  ]  
});

that.videoUploader.init();
that.videoUploader.bind('FilesAdded', that.videoHandlePluploadFileSelected);
that.videoUploader.bind('FileUploaded', that.videoHandlePluploadFileUploaded);   

Upload.prototype.videoHandlePluploadFileSelected = function(uploader, file) {
  alert("start upload!");
  uploader.start();
}

【问题讨论】:

    标签: iphone video ios8 plupload


    【解决方案1】:

    过滤器部分搞砸了一切。问题解决了删除该部分。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-07-18
      • 2011-03-11
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多