29 std::unique_ptr<RecorderImpl> impl_;
40 Recorder(std::unique_ptr<RecorderImpl> impl);
51 Recorder(std::shared_ptr<Device> device);
68 void start(
const char *filename,
bool async =
false);
90 void write(std::shared_ptr<Frame> frame);
95 std::unique_ptr<PlaybackImpl> impl_;
108 Playback(std::unique_ptr<PlaybackImpl> impl);
157 std::shared_ptr<DeviceInfo> getDeviceInfo();
提供SDK的结构体、枚举常量定义(依赖libobsensor/h/ObTypes.h)
std::function< void(std::shared_ptr< Frame > frame)> PlaybackCallback
std::function< void(OBMediaState state)> MediaStateCallback