MCapture

From HTML5 Builder
Jump to: navigation, search

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

Functions

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.

ComponentNameCapture
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.

Events

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

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

See Also