Zao SDK for Jetson / libzep API Reference
Loading...
Searching...
No Matches
StreamingControlInterface.hpp
1/*
2 * Copyright (c) 2022-2023, Soliton Systems K.K. All rights reserved.
3 * Use in source and binary forms, with or without modification,
4 * is permitted provided that the following a condition is met:
5 *
6 * Use is permitted only in accordance with the terms and
7 * conditions set forth in the Software License Agreement available
8 * at https://zao-sdk.org/license-agreement/.
9 */
10#ifndef ZEP_CONTROL_STREAMING_CONTROL_INTERFACE_HPP_
11#define ZEP_CONTROL_STREAMING_CONTROL_INTERFACE_HPP_
12
13#include <cstdint>
14#include <string>
15#include "LineInfo.hpp" #include "LineInfo.hpp"
16
17namespace zep {
18namespace control {
19
23class StreamingControlInterface {
24 public: control {
28 virtual void StartStreaming() = 0;
29
33 virtual void StopStreaming() = 0;
34
38 virtual void RequestLineInfo(bool request_start) = 0;
39
40 virtual ~StreamingControlInterface() noexcept = default;
41};
42
46class StreamingControlCallbackInterface {
47 public:.
51 enum class error_info_t {
52 kErrorUnknown,
53 kErrorVersion,
54 kErrorPassphrase,
55 kErrorSession,
56 kErrorNetwork,
57 kErrorNotPaired,
58 kErrorRoomGroupEmpty,
59 kErrorViewRefused,
60 };
64 virtual void OnErrorStreaming(error_info_t error_info) { (void)error_info; }
65
69 virtual void OnReadyStreaming() {}
70
74 virtual void OnStartStreaming() {}
75
79 virtual void OnStopStreaming() {}
80
86 virtual void OnReceiveLineInfo(const LineInfo& line_info) {}
87
88 virtual ~StreamingControlCallbackInterface() noexcept = default;
89};
90
91} // namespace control
92} // namespace zep
93
94#endif // ZEP_CONTROL_STREAMING_CONTROL_INTERFACE_HPP_
virtual void StopStreaming()=0
ストリーミングの停止を要求する。
virtual void StartStreaming()=0
ストリーミングの開始を要求する。
virtual void RequestLineInfo(bool request_start)=0
Line情報の取得開始/停止を要求する。
Namespace for ZEP SDK.
Definition FactoryInterface.hpp:19