jbavari / cordova-plugin-video-editor

A cordova plugin to edit videos.
Other
289 stars 235 forks source link

"Uncaught ReferenceError: videoEditor is not defined" #184

Closed pixellet14 closed 1 year ago

pixellet14 commented 1 year ago

I see "Uncaught ReferenceError: videoEditor is not defined" while trying to build. below is my code

var options = {
                fileUri: videoPath,
                outputFileName: "trimmed_video.mp4",
                startTime: minValue,
                endTime: maxValue,
                optimizeForNetworkUse: VideoEditorOptions.OptimizeForNetworkUse.YES,
                saveToLibrary: true,
                maintainAspectRatio: true,
                videoBitrate: 1000000,
                audioChannels: 2,
                audioSampleRate: 44100,
                audioBitrate: 128000,
                };

                videoEditor.transcode(
                function(result) {
                    console.log("Trimmed video saved at: " + outputFilePath);
                },
                function(error) {
                    console.log("Video trim failed: " + error);
                },
                options
                );
pixellet14 commented 1 year ago

OOps sorry, please close it... i did a spelling mistake there. it's working great!