Skip to main content

RTSPInput.h File

RTSP input node wrapper. More...

Included Headers

#include "builder/Node.h" #include <memory> #include <string> #include <vector>

Namespaces Index

namespacesimaai
namespaceneat
namespacenodes

Classes Index

classRTSPInput

Description

RTSP input node wrapper.

File Listing

The file content with the documentation metadata removed is:

1
6#pragma once
7#include "builder/Node.h"
8#include <memory>
9#include <string>
10#include <vector>
11
12namespace simaai::neat {
13
14class RTSPInput final : public Node {
15public:
16 RTSPInput(std::string url, int latency_ms = 200, bool tcp = true, bool drop_on_latency = false,
17 std::string buffer_mode = "");
18
19 std::string kind() const override {
20 return "RTSPInput";
21 }
22 std::string user_label() const override {
23 return url_;
24 }
25 InputRole input_role() const override {
26 return InputRole::Source;
27 }
28 NodeCapsBehavior caps_behavior() const override {
29 return NodeCapsBehavior::Dynamic;
30 }
31
32 std::string backend_fragment(int node_index) const override;
33 std::vector<std::string> element_names(int node_index) const override;
34
35 const std::string& url() const {
36 return url_;
37 }
38 int latency_ms() const {
39 return latency_ms_;
40 }
41 bool tcp() const {
42 return tcp_;
43 }
44 bool drop_on_latency() const {
45 return drop_on_latency_;
46 }
47 const std::string& buffer_mode() const {
48 return buffer_mode_;
49 }
50
51private:
52 std::string url_;
53 int latency_ms_ = 200;
54 bool tcp_ = true;
55 bool drop_on_latency_ = false;
56 std::string buffer_mode_;
57};
58
59} // namespace simaai::neat
60
61namespace simaai::neat::nodes {
62std::shared_ptr<simaai::neat::Node> RTSPInput(std::string url, int latency_ms = 200,
63 bool tcp = true, bool drop_on_latency = false,
64 std::string buffer_mode = "");
65} // namespace simaai::neat::nodes

Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.1.