当前位置:   article > 正文

android action pick,使用相册选择视频时报错了,No Activity found to handle Intent { act=android.intent.action.PICK...

no activity found to handle intent { act=android.intent.action.pick typ=vide

这个是报错信息:

{"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

});

}

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/不正经/article/detail/175250
推荐阅读
相关标签
  

闽ICP备14008679号