triniwiz / nativescript-videorecorder

:video_camera: NativeScript plugin for Video Recording . :video_camera:
Apache License 2.0
43 stars 29 forks source link

sdkVersion error #81

Closed maganius closed 3 years ago

maganius commented 3 years ago

When execute the video record videorecorder.record() the console throw an error Cannot read property 'sdkVersion' of undefined

Make sure to check the demo app(s) for sample usage

Make sure to check the existing issues in this repository

If the demo apps cannot help and there is no issue for your problem, tell us about it

Please, ensure your title is less than 63 characters long and starts with a capital letter.

Which platform(s) does your issue occur on?

Please, provide the following version numbers that your issue occurs with:

"dependencies": {
    "@nativescript/core": "~7.0.0",
    "@nativescript/theme": "~2.3.0",
    "nativescript-image": "^3.0.12",
    "nativescript-ui-sidedrawer": "~9.0.0",
    "nativescript-videorecorder": "^3.0.0-beta.6",
    "nativescript-vue": "~2.8.0",
    "rxjs": "^6.6.0"
  },
  "devDependencies": {
    "@babel/core": "~7.1.0",
    "@babel/preset-env": "~7.1.0",
    "@nativescript/android": "7.0.0",
    "@nativescript/webpack": "~3.0.0",
    "babel-loader": "~8.0.0",
    "nativescript-vue-template-compiler": "~2.8.0",
    "node-sass": "^4.7.1",
    "vue-loader": "~15.9.3"
  },

Please, tell us how to recreate the issue in as much detail as possible.

Describe the steps to reproduce it.

I just install the plugin and start the camera record, its nativescript-vue app

recordVideo() {
                console.log('tap')
                // vm.set('error', '');
                videorecorder.record().then(data => {
                    if (data && data.file) {
                        console.log(data.file)
                        // vm.set('selectedVideo', data.file);
                    }
                }).catch((err) => {
                    console.log(err.event || err.message)
                    // vm.set('error', err.event || err.message);
                });
            }

Is there any code involved?

triniwiz commented 3 years ago

Fixed in @triniwiz/nativescript-videorecorder