cordova-plugin-media-capture
cordova-plugin-media-capture copied to clipboard
I have set duration for video capture into code but still unable to see into OnePlus
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.
Ionic info:
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 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.
HI @krunalm2194 , i am getting the same error on oneplus.Did you find any work around?
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 :)