triniwiz / nativescript-videorecorder

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

App crashes after starting video-recorder on iOS #47

Closed FarruchKouliev closed 5 years ago

FarruchKouliev commented 6 years ago

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

App crashes after Start whithout NS-Errors, when using video-recorder on iOS. However, there are some errors in the simulator logs, as listed below.

Which platform(s) does your issue occur on?

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

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

  1. Create HelloWorld-Example: https://docs.nativescript.org/angular/start/hello-world/ng-chapter-1
  2. tns plugin add nativescript-videorecorder
  3. Modify app.component.ts & app.component.html as described below
  4. tns run ios
  5. Error occurs in simulator log:

Is there any code involved?

app.component.ts:

import { Component } from "@angular/core";
import { VideoRecorder, Options as VideoRecorderOptions } from 'nativescript-videorecorder';

@Component({
  selector: "my-app",
})

export class AppComponent {
    public ngOnInit(): void {
        const videorecorder = new VideoRecorder();
        videorecorder.record().then((data) => {
            console.log(data.file)
        }).catch((err) => {
            console.log(err)
        });
    }
}
triniwiz commented 6 years ago

The plugin won't work on the ios simulator

FarruchKouliev commented 6 years ago

Ok, can you give me some insights why it‘s not possible? Meaning, is it not possible in general on iOS, or in NativeScript or does the plugin need to be extended? And does it work on a real device?

triniwiz commented 6 years ago

In general for iOS

klever34 commented 6 years ago

@triniwiz on android device, when I set the HD to true, the app crashes

triniwiz commented 6 years ago

@klever34 sounds like you are using the standard recorder I’ll have to look into that

klever34 commented 6 years ago

@triniwiz Okay should I wait for a feedback?

triniwiz commented 6 years ago

@klever34 you can always try out the AdvancedVideoView