takeCameraOwnership()

Description

Take ownership of a camera Data Source by its name.

Syntax

DCSObject.camera.takeCameraOwnership(string cameraName);

Parameters

<string> cameraName: The name of the source.

Return value

bool

true indicates success. false indicates failure.

Remarks

If the camera you are trying to access is occupied by another Dynamsoft camera process, simply call this method to take the ownership back.

Example

if (DCSObject) {
   DCSObject.camera.takeCameraOwnership("Integrated Camera");
}

See also

.camera.getCameraList()

Is this page helpful?

Leave a Reply

Your email address will not be published.