我正在使用react-native-video-processing依赖项在本地设备视频上使用boomerang选项,但是当它在“ ProcessingManager.boomerang(source)”方法中传递视频的源uri时,它显示找不到错误文件。 / p>
这是我的代码:-
onSelectVideo = () => {
ImagePicker.showImagePicker({title:'Select Video',
takePhotoButtonTitle : 'Make Video',
maxHeight:800,maxWidth:800,
mediaType:'video',cropping:true},
video => {
if(video.didCancel){
ToastAndroid.show('Video selecting
cancel',ToastAndroid.LONG);
} else if(video.error){
ToastAndroid.show('Video selecting error :
'+video.error,ToastAndroid.LONG);
}else {
console.log("Video Uri : "+JSON.stringify(video))
this.setState({videoUri : video.uri})
ProcessingManager.boomerang((video.uri).toString())
.then(videoUri => {
console.log("Video Uri :
"+JSON.stringify(video))
})
}
}
)
}