Video Capture Plus

Contents

This plugin offers some useful extras on top of the default Media Capture Plugin capabilities:

  • HD recording.
  • Starting with the front camera.
  • A custom overlay (currently iOS only).
https://github.com/danielsogl/cordova-plugin-video-capture-plus

联系我们?

If you're building a serious project, you can't afford to spend hours troubleshooting. Ionic's experts offer official maintenance, support, and integration help.

Contact Us Today!

Ionic Video Capture Plus插件的安装(Installation)

ionic cordova plugin add cordova-plugin-video-capture-plus npm install @ionic-native/video-capture-plus
Ionic EE comes with fully supported and maintained plugins from the Ionic Team. Learn More or Contact Us
ionic enterprise register --key=YOURPRODUCTKEY npm install @ionic-enterprise/video-capture-plus

Ionic Video Capture Plus插件支持的平台(Supported Platforms)

  • Android
  • iOS

Ionic Video Capture Plus插件的用法(Usage)

import { VideoCapturePlus, VideoCapturePlusOptions, MediaFile } from '@ionic-native/video-capture-plus/ngx';


constructor(private videoCapturePlus: VideoCapturePlus) { }

...

const options: VideoCapturePlusOptions = {
   limit: 1,
   highquality: true,
   portraitOverlay: 'assets/img/camera/overlay/portrait.png',
   landscapeOverlay: 'assets/img/camera/overlay/landscape.png'
}

this.videoCapturePlus.captureVideo(options).then(mediafile: MediaFile[] => console.log(mediafile), error => console.log('Something went wrong'));