OpenTera WebRTC API (C++) 1.2.5
VideoSourceConfiguration.h
1 #ifndef OPENTERA_WEBRTC_NATIVE_CLIENT_CONFIGURATIONS_VIDEO_SOURCE_CONFIGURATION_H
2 #define OPENTERA_WEBRTC_NATIVE_CLIENT_CONFIGURATIONS_VIDEO_SOURCE_CONFIGURATION_H
3 
4 namespace opentera
5 {
10  {
11  bool m_needsDenoising;
12  bool m_isScreencast;
13 
15 
16  public:
17  VideoSourceConfiguration(const VideoSourceConfiguration& other) = default;
19  virtual ~VideoSourceConfiguration() = default;
20 
22 
23  [[nodiscard]] bool needsDenoising() const;
24  [[nodiscard]] bool isScreencast() const;
25 
26  VideoSourceConfiguration& operator=(const VideoSourceConfiguration& other) = default;
27  VideoSourceConfiguration& operator=(VideoSourceConfiguration&& other) = default;
28  };
29 
37  inline VideoSourceConfiguration VideoSourceConfiguration::create(bool needsDenoising, bool isScreencast)
38  {
39  return {needsDenoising, isScreencast};
40  }
41 
46  inline bool VideoSourceConfiguration::needsDenoising() const { return m_needsDenoising; }
47 
52  inline bool VideoSourceConfiguration::isScreencast() const { return m_isScreencast; }
53 }
54 
55 #endif
Represents a configuration of a video source that can be added to a WebRTC call.
Definition: VideoSourceConfiguration.h:10
bool isScreencast() const
Indicates if this source is screencast.
Definition: VideoSourceConfiguration.h:52
static VideoSourceConfiguration create(bool needsDenoising, bool isScreencast)
Creates a video source configuration with the specified values.
Definition: VideoSourceConfiguration.h:37
bool needsDenoising() const
Indicates if this source needs denoising.
Definition: VideoSourceConfiguration.h:46