Closed mrioso closed 4 years ago
Hi guys, i need help.
TypeError: Cannot read property 'FileProvider' of undefined
I get that error when i try to record.
"tns-android": { "version": "6.1.2" }
"dependencies": { "@angular/animations": "~8.2.0", "@angular/common": "~8.2.0", "@angular/compiler": "~8.2.0", "@angular/core": "~8.2.0", "@angular/forms": "~8.2.0", "@angular/platform-browser": "~8.2.0", "@angular/platform-browser-dynamic": "~8.2.0", "@angular/router": "~8.2.0", "@nstudio/nativescript-loading-indicator": "^1.0.0", "file-base64": "^1.0.0", "nativescript-angular": "~8.2.0", "nativescript-audio": "^5.0.5", "nativescript-camera": "^4.5.0", "nativescript-geolocation": "^5.1.0", "nativescript-imagepicker": "^7.1.0", "nativescript-iqkeyboardmanager": "^1.5.1", "nativescript-permissions": "^1.3.8", "nativescript-theme-core": "~1.0.6", "nativescript-toast": "^2.0.0", "nativescript-ui-sidedrawer": "~7.0.0", "nativescript-videorecorder": "^3.0.0-beta.3", "reflect-metadata": "~0.1.12", "rxjs": "^6.4.0", "tns-core-modules": "~6.1.0", "zone.js": "~0.9.1" }, "devDependencies": { "@angular/compiler-cli": "~8.2.0", "@ngtools/webpack": "~8.2.0", "codelyzer": "~4.5.0", "nativescript-dev-webpack": "~1.2.0", "node-sass": "^4.7.1", "tslint": "~5.19.0", "typescript": "~3.5.3" },
const options: VideoRecorderOptions = { hd: true, saveToGallery: true } const videorecorder = new VideoRecorder(options) videorecorder.record().then((data) => { console.log(data.file) }).catch((err) => { console.log(err) })
Hi guys, i need help.
I get that error when i try to record.