CreatorCreator
Home
Getting Started
  • 中文简体
  • English
Home
Getting Started
  • 中文简体
  • English
  • Creator

    • Getting Started
  • Stream Dock

    • Plugin SDK
    • Icon Pack

      • Overview
      • Terminology
      • Creating an Icon Pack
      • Icon Specifications
    • Scene Configuration

      • What is a Scenario Configuration?
      • Exporting
      • Use Cases
  • mPanel

    • Plugin SDK
  • Linux StreamDock SDK

    • Cpp SDK

      • Overview
      • Dependency
      • Device Manager
      • StreamDock Base Class
      • StreamDock293
      • Communication transmission
      • Example
      • Source code
    • Python SDK

      • Overview
      • Dependency
      • DeviceManager
      • StreamDock Base Class
      • StreamDock293
      • Example
      • Source Code
  • Windows StreamDock SDK

    • WebSocket SDK

      • Overview
      • Getting Started
      • Events to Send
      • Received Events
    • Cpp SDK

      • Overview
      • Dependency
      • Device manager
      • StreamDock Base Class
      • StreamDock293
      • Transport
      • Example
      • Source Code
  • Support

    • Help and Bug Reporting

Windows

You need to install it yourself on Windows OpenCV and hidapi

And configure environment variables

For OpenCV

path

For HIDAPI, you can build a folder by yourself, and then put hidapi.dll into this folder and then configure environment variables. You can also directly put Hidapi.dll in C: \ Windows \ System32

Download Example, open the project with Visual Studio to replace the project attributes in the project attributes, which contains the directory and library directory as your address. cppcpp

When using a dynamic library, you need to define a DeviceManager class object (device manager class), and then call the enumerate () function to traverse the device to obtain the list of equipment objects.

  DeviceManager *manager = new DeviceManager();
  auto streamDocks = manager->enumerate();

After obtaining the list of equipment objects, make the open() method open the device when the device needs to be called, and then other methods to operate the device

auto it = StreamDocks->begin();
StreamDock *s = *it;
s->open();

// Set the brightness
s->setBrightness(100);
Last Updated:
Contributors: Heart
Prev
Overview
Next
Device manager