Launching the Plugin
The plugin window is launched with open(options)
method:
Parameters
The full list of OzLiveness.open()
parameters:
options
– an object with the following settings:token
– (optional) the auth token;license
– an object containing the license data;licenseUrl
– a string containing the path to the license;lang
– a string containing the identifier of one of the installed language packs;params
– an object with identifiers and additional parameters:extract_best_shot
–true
orfalse
: run the best frame choice in the Quality analysis;
action
– an array of strings with identifiers of actions to be performed. Available actions:photo_id_front
– photo of the ID front side;photo_id_back
– photo of the ID back side;video_selfie_left
– turn head to the left;video_selfie_right
– turn head to the right;video_selfie_down
– tilt head downwards;video_selfie_high
– raise head up;video_selfie_smile
– smile;video_selfie_eyes
– blink;video_selfie_scan
– scanning;video_selfie_blank
– no action, simple selfie;video_selfie_best
– special action to select the best shot from a video and perform analysis on it instead of the full video.
overlay_options
– the document's template displaying options:show_document_pattern
:true/false
–true
by default, displays a template image, if set tofalse
, the image is replaced by a rectangular frame;
on_error
– a callback function (with one argument) that is called in case of any error happened during video capturing and retrieves the error information: an object with the error code, error message, and telemetry ID for logging.on_close
– a callback function (no arguments) that is called after the plugin window is closed (whether manually by the user or automatically after the check is completed).device_id
– (optional) identifier of camera that is being used.disable_adaptive_aspect_ratio
(since 1.5.0) – ifTrue
, disables the video adaptive aspect ratio, so your video doesn’t automatically adjust to the window aspect ratio. The default value isFalse
, and by default, the video adjusts to the closest ratio of 4:3, 3:4, 16:9, or 9:16. Please note: smartphones still require the portrait orientation to work.get_user_media_timeout
(since 1.5.0) – when Web SDK can’t get access to the user camera, after this timeout it displays a hint on how to solve the problem. The default value is 40000 (ms).
Last updated
Was this helpful?