找不到文件在ProcessingManager.boomerang(source)中发送源时发生错误?

时间:2018-12-27 10:30:28

标签: javascript node.js react-native ecmascript-6

我正在使用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))
                    })
            }
          }
        )
    }

0 个答案:

没有答案