Skip to main content

VideoSender.h File

Customer-facing video sender node group. More...

Included Headers

#include "builder/NodeGroup.h" #include <string>

Namespaces Index

namespacesimaai
namespaceneat
namespacenodes
namespacegroups

Classes Index

structVideoSenderRtpOptions
structVideoSenderEncoderOptions
classVideoSenderOptions

Description

Customer-facing video sender node group.

File Listing

The file content with the documentation metadata removed is:

1
6#pragma once
7
8#include "builder/NodeGroup.h"
9
10#include <string>
11
13
15 int payload_type = 96;
17};
18
20 int bitrate_kbps = 4000;
21 std::string profile = "baseline";
22 std::string level = "4.0";
23};
24
26public:
29
30 bool is_raw_input() const {
31 return input_kind_ == InputKind::Raw;
32 }
33 bool is_encoded_input() const {
34 return input_kind_ == InputKind::EncodedH264;
35 }
36 int width() const {
37 return width_;
38 }
39 int height() const {
40 return height_;
41 }
42 int fps() const {
43 return fps_;
44 }
45 int video_port() const {
47 }
48
49 std::string host = "127.0.0.1";
50 int channel = 0;
51 int video_port_base = 9000;
52 bool sync = false;
53 bool async = false;
56
57private:
58 enum class InputKind { Raw, EncodedH264 };
59
60 VideoSenderOptions() = default;
61
62 InputKind input_kind_ = InputKind::EncodedH264;
63 int width_ = 0;
64 int height_ = 0;
65 int fps_ = 0;
66};
67
68simaai::neat::NodeGroup VideoSender(const VideoSenderOptions& opt);
69
70} // namespace simaai::neat::nodes::groups

Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.8.