Skip to main content

Code Examples

These examples are sourced from the public, MIT-licensed PTZOptics Code Examples repository. Use them as starting points for a camera integration, then consult the protocol reference for the specific command, compatibility, and parameters.

ProtocolLanguageTaskSource
HTTP APIPythonSend HTTP API commands with digest authenticationPython HTTP example
HTTP APINode.jsSend HTTP API commands with digest authenticationNode.js HTTP example
HTTP APIC#Recall a camera presetC# preset recall
VISCA over IPPythonSend VISCA movement commands over TCPPython VISCA example
VISCA over IPNode.jsSend VISCA commands over TCPNode.js VISCA example
VISCA over IPPythonSave and restore preset positionsPreset utilities

Choose the matching protocol guide​

The repository examples include configuration values that must be updated for the target camera. Do not publish camera credentials in application source code or version control.

Ask PTZOptics AI

Ask a question about PTZOptics products or documentation.