【发布时间】: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