cordova-plugin-media-capture icon indicating copy to clipboard operation
cordova-plugin-media-capture copied to clipboard

I have set duration for video capture into code but still unable to see into OnePlus

Open krunalm2194 opened this issue 3 years ago • 4 comments

Bug Report

Problem

I have set duration for video capture into code but still unable to see into OnePlus. It's working into Redmi and other devices. Please anyone help me out with this. image

Ionic info: image

image

image

image

krunalm2194 avatar Jul 23 '20 03:07 krunalm2194

Please supply any errors reported in the console, or wrap the captureVideo method around a try/catch to log any potential errors.

I'd assume you are receiving one of these errors. Knowing which one will help to steer us in the right direction.

Also, [email protected] is pretty ancient and no longer supported.

breautek avatar Jul 23 '20 04:07 breautek

@breautek Thank you for your reply. Actually I am not getting any error. When I go capture video and duration limit is set then the recording is going beyond the duration limit. Video is getting recorded.

krunalm2194 avatar Jul 23 '20 06:07 krunalm2194

HI @krunalm2194 , i am getting the same error on oneplus.Did you find any work around?

rahulii avatar May 05 '21 18:05 rahulii

Having the same issue in my OnePlus 8T with Android 12. There is no error given too...

I'm using the following code:

import { MediaCapture, MediaFile, CaptureError, CaptureVideoOptions } from '@ionic-native/media-capture/ngx';

openVideo() {

    var options: CaptureVideoOptions =  {
      limit: 5,
      duration: 15
    };

    this.mediaCapture.captureVideo(options).then((mediaFiles: MediaFile[]) => {
      console.log(mediaFiles);
    }
    ).catch((err: CaptureError) => console.error(err));
  }

If anyone could help I would be very grateful :)

PhantomPainX avatar May 17 '22 22:05 PhantomPainX