cmr.startVideoCapture( function( path ){
console.log( "Capture video success: " + path );
plus.io.resolveLocalFileSystemURL(path, function(entry){
console.log('entry')
console.log(entry)
// console.log(JSON.stringify(entry));
// createItem(entry);
entry.file( function(file){
console.log('file')
console.log(file)
console.log("getFile:" + JSON.stringify(file));
// createUpload(file)
} );
}, function(e){
outLine('读取录像文件错误:'+e.message);
} );
},
怎么从摄像里面选中视频并且上传到指定路径啊?
1 个回复
FullStack - 【插件开发】【专治疑难杂症】【ios上架、马甲包、白包、过审、已成功上架过几百个】【多款插件已上架:https://ext.dcloud.net.cn/publisher?id=22130】【非诚勿扰】QQ:543610866
参考这个方法:https://www.html5plus.org/doc/zh_cn/uploader.html#plus.uploader.Upload.addFile