cordova-plugin-video-editor
cordova-plugin-video-editor copied to clipboard
Error: DataCloneError: dom Exeption 25
Trying to get the plugin to work, however keep getting Error: DataCloneError: dom Exeption 25, the given file is a .MOV generated by cordova camera plugin...
VideoEditor.transcodeVideo( function(e){ console.log( e ); }, // success cb function( e ){ console.log( e ); }, // error cb { fileUri: videoURI, // the path to the video on the device outputFileName: 'test', // the file name for the transcoded video outputFileType: VideoEditorOptions.OutputFileType.MPEG4, // android is always mp4 optimizeForNetworkUse: VideoEditorOptions.OptimizeForNetworkUse.YES, // ios only saveToLibrary: true, // optional, defaults to true deleteInputFile: false, // optional (android only), defaults to false maintainAspectRatio: true, // optional (ios only), defaults to true width: 640, // optional, see note below on width and height height: 640, // optional, see notes below on width and height videoBitrate: 1000000, // optional, bitrate in bits, defaults to 1 megabit (1000000) fps: 24, // optional (android only), defaults to 24 audioChannels: 2, // optional (ios only), number of audio channels, defaults to 2 audioSampleRate: 44100, // optional (ios only), sample rate for the audio, defaults to 44100 audioBitrate: 128000, // optional (ios only), audio bitrate for the video in bits, defaults to 128 kilobits (128000) progress: function(info) {} // info will be a number from 0 to 100 } );