Loading...
Searching...
No Matches
ScreenSender.h
Go to the documentation of this file.
1// Copyright (c) 2025 Dave R. Smith.
2// Malena Framework — Licensed under PolyForm Noncommercial 1.0.0; commercial use requires a paid license. See LICENSE.
3
4#pragma once
5#ifndef MALENA_SCREEN_SENDER_H
6#define MALENA_SCREEN_SENDER_H
7
9#include <memory>
10#include <string>
11
12namespace ml {
13
37{
38public:
43 ScreenSenderBase(const char* name, const char* rtspUrl);
45
48
50 void start();
51
53 void stop();
54
60 void setUrl(const std::string& rtspUrl);
61
68 void setCaptureIndex(int index);
69
79 void setCaptureWindow(unsigned int windowId);
80
85 void setWindowHelperPath(const std::string& path);
86
88 bool isPublishing() const;
89
90 const std::string& senderName() const;
91 const std::string& url() const;
92
93private:
94 struct Impl;
95 std::unique_ptr<Impl> _impl;
96};
97
98// ---------------------------------------------------------------------------
99
112template<typename Manifest>
114{
115public:
119};
120
121} // namespace ml
122
123#endif // MALENA_SCREEN_SENDER_H
Base class for all Malena manifests.
Definition Manifest.h:51
ScreenSenderBase(const char *name, const char *rtspUrl)
void setCaptureWindow(unsigned int windowId)
bool isPublishing() const
void setWindowHelperPath(const std::string &path)
void setCaptureIndex(int index)
ScreenSenderBase & operator=(const ScreenSenderBase &)=delete
const std::string & senderName() const
virtual ~ScreenSenderBase()
const std::string & url() const
ScreenSenderBase(const ScreenSenderBase &)=delete
void setUrl(const std::string &rtspUrl)
#define MALENA_API
Definition Animate.h:25