orbbec-sdk-sys 0.1.2+2.5.5

Low-level Rust bindings for https://github.com/orbbec/OrbbecSDK_v2
Documentation
#pragma once

#include "IStreamProfile.hpp"
#include "IFrame.hpp"
#include "ObRTPUDPClient.hpp"

namespace libobsensor {

class ObRTPClient {
public:
    ObRTPClient();
    ~ObRTPClient() noexcept;

    void     init(std::string localAddress, std::string address, uint16_t port);
    void     start(std::shared_ptr<const StreamProfile> profile, MutableFrameCallback callback);
    uint16_t getPort();
    void     stop();
    void     close();

private:
    std::shared_ptr<ObRTPUDPClient> udpClient_;

};

}  // namespace libobsensor