nativescript-camera-plus icon indicating copy to clipboard operation
nativescript-camera-plus copied to clipboard

Vue Error on Record

Open packytagliaferro opened this issue 6 years ago • 1 comments
trafficstars

I am currently using this in a Vue project and get this error on record:

Terminating app due to uncaught exception 'NativeScript encountered a fatal error: TypeError: this.startVideoRecording is not a function. (In 'this.startVideoRecording()', 'this.startVideoRecording' is undefined)

I have the camera setup like this:

<CameraPlus
                        v-else
                        row="0"
                        col="1"
                        debug="true"
                        enableVideo="true"
                        showFlashIcon="false"
                        showToggleIcon="true"
                        showCaptureIcon="true"
                        showGalleryIcon="false"
                        height="30%"
                        ref="videocamera"
                        @videoRecordingFinishedEvent="videoDone"
                    ></CameraPlus>

then I have a button I record using:

record() {
            this.$refs.videocamera.nativeView.record();

        },

I have tried some other methods like "Flash" and those seem to work

packytagliaferro avatar Mar 05 '19 22:03 packytagliaferro

Check out #70, I ran into the same issue with video and photos. Are you running version 2.1.0? If so, reverting back to 2.0.2 might fix your issue

Logikgate avatar Mar 19 '19 19:03 Logikgate