dynamsoft.dcsEnv.getObject()

Description

Gets the Dynamsoft camera object initiated with the video viewer container id.

Syntax

dynamsoft.dcsEnv.getObject(videoViewerContainer);

Parameters

<string> videoViewerContainer: The id of video container.

Return value

DCSObject

Example


var DCSObject;

//DCSVideoViewerContainer and DCSImageViewerContainer are the container ids for video viewer and image viewer.
dynamsoft.dcsEnv.init("DCSVideoViewerContainer", "DCSImageViewerContainer", onSuccess, onFailure); 


function onSuccess (videoViewerContainer, imageViewerContainer) {
    DCSObject = dynamsoft.dcsEnv.getObject(videoViewerContainer);
}

function onFailure (errorCode, errorString) {
    console.log (errorCode + errorString);
}