Cordova-plugin-media-capture not working on ionic upload


#1

ionic media capture:

captureAudio, captureVideo, captureImage none of the three features are working correctly. Below is the info by running ionic info, does anyone has updated information for this plugin on ionic framework? Any help is appreciate.

Thanks

Your system information:

OS: Mac OS X Yosemite
Node Version: v0.10.38
Cordova CLI: 4.3.0
Ionic CLI Version: 1.3.19
Xcode version: Xcode 6.3 Build version 6D570
ios-sim version: 3.1.1
ios-deploy version: 1.5.0


#2

The cordova media capture plugin is not available on Ionic View.


#3

Thank you for the quick reply. Do you know any work around to test camera and video feature?


#4

I don’t use Ionic view so I haven’t dig into workarounds but as far as I know it’s impossible for you to use the media capture plugin on Ionic view since it’s not supported. The only thing you can do to avoid errors is to check whether the plugin is available or not (using lodash or underscore => _.isUndefined(thePlugin)).

I run ionic run android every time i need to test plugins.


#5

So the media capture plugin can be tested over ionic run andriod command?


#6

If you have a device, yes. I’m not sure about the emulator.


#7

So if I plugin the IOS device and run ionic run IOS it will build to my IOS device?


#8

Uhm… http://ionicframework.com/docs/guide/testing.html

Testing as a native app


Since we are building a native (or “hybrid”) app, we can (and should!) test it as one. There are serveral ways to do this. If you are building for iOS, you’ll need to sign up for an Apple Developer account to test as a native app on an iPhone or iPad. Unfortunately, this costs $99 per year (don’t blame us!). Once you have an account and you have set up XCode with your certificates to enable device testing, you’ll want to open the XCode project from platforms/ios/ and do your testing from XCode.


#9

Thank you so much for the information.

Do you know if there is a best Cordova plugin to camera foreground skin or UI?

It seems that you know everything. :smile:


#10

I hardly believe there is one. Create your own plugin or do it native.


#11

Hey Jose have you had any luck recording with ion native camera preview?