From HTML5 Builder
Jump to: navigation, search

MCapture lets your application access image, audio, and video capture capabilities of the device.


These are JavaScript functions you can call when you use this component in a screen.

Note: Replace ComponentName with the actual name of the component, that is, the value of its Name property. For example: MCapture1.

Starts camera application or audio/video recorder and retrieves files user generates with them. If files are successfully retrieved, it triggers OnSuccess event, else it triggers OnError.


These are JavaScript MCapture events you can associate to JavaScript functions.

This event gets triggered when, for some reason, media files could not be retrieved after calling ComponentNameCapture. Its only parameter is a CaptureError object.
This event gets triggered when media files are successfully retrieved after calling ComponentNameGetPicture. Its only parameter is an array of MediaFile objects.

See Also