lizhudong2011
lizhudong2011
  • 发布:2015-12-14 10:00
  • 更新:2015-12-14 14:17
  • 阅读:3761

使用相册选择视频时报错了,No Activity found to handle Intent { act=android.intent.action.PICK typ=video/* }"}

分类:HTML5+

这个是报错信息:
{"code":12,"message":"No Activity found to handle Intent { act=android.intent.action.PICK typ=video/* }"}

newCreditApplyRecord.galleryVideo = function() {  

            // 从相册中选择图片  

            mui.toast("从相册中选择一段视频");  

            plus.gallery.pick(function(path) {  

                console.log("从相册中选择了:" + path);  

                plus.io.resolveLocalFileSystemURL(path, function(entry) {  

                    entry.file(function(file) {  

                        //得到file对象  

                        console.log("得到选择的视频:" + file.size + '--' + file.name + "--" + file.fullPath);  

                        selectVideoElement.parentElement.querySelector("#showImg").src = "../../appres/images/video.jpg";  

                        imgPathsArray['video'] = file;  

                    });  

                });  

            }, function(e) {  

                mui.toast("取消选择视频"+JSON.stringify(e));  

                console.log(JSON.stringify(e));  

            }, {  

                filter: "video",  

                multiple: false  

            });  

        }  
2015-12-14 10:00 负责人:无 分享
已邀请:
lizhudong2011

lizhudong2011 (作者)

怎么没有回复啊?

该问题目前已经被锁定, 无法添加新回复