Occasionally media-capture plugin creates corrupted videos


#1

Hello

Sometimes mediaCapture.captureVideo({ limit: 1, duration: 30 }) code opens a native camera view then creates corrupted videos with almost the same size 791.30 KB (810,290 Bytes). Random 2-5 out of 10 records get corrupted. Why can this happen? Where can be a problem?

  • Android 8.1.0
  • Android System WebView 65.0.3325.109
  • @ionic-native/media-capture 4.6.0
  • cordova-plugin-media-capture 3.0.1

cli packages: (/home/user/.nvm/versions/node/v8.1.0/lib/node_modules)

@ionic/cli-utils  : 1.19.2
ionic (Ionic CLI) : 3.20.0

global packages:

cordova (Cordova CLI) : 8.0.0 

local packages:

@ionic/app-scripts : 3.1.8
Cordova Platforms  : android 7.0.0 ios 4.5.4
Ionic Framework    : ionic-angular 3.9.2

System:

Node : v8.1.0
npm  : 5.8.0 
OS   : Linux 4.4

Environment Variables:

ANDROID_HOME : not set

Misc:

backend : pro