![]() |
Intel® Collaboration Suite for WebRTC
version 4.3.1
Open WebRTC Toolkit (OWT) Client SDK for Windows*
|
This class contains parameters and methods that's needed for creating a local stream with certain screen or window as source. When a stream is created, it will not be impacted if these parameters are changed. More...
#include <owt/base/localcamerastreamparameters.h>
Public Types | |
enum | DesktopCapturePolicy : int { DesktopCapturePolicy::kDefault = 0, DesktopCapturePolicy::kEnableDirectX = 1, DesktopCapturePolicy::kEnableEffects = 2, DesktopCapturePolicy::kEnableUpdateDetection = 4, DesktopCapturePolicy::kEnableMagnification = 8 } |
enum | DesktopSourceType : int { DesktopSourceType::kFullScreen = 1, DesktopSourceType::kApplication } |
Public Member Functions | |
LocalDesktopStreamParameters (bool audio_enabled, bool video_enabled) | |
Initialize a LocalDesktopStreamParameters. More... | |
bool | VideoEnabled () const |
Get video is enabled or not for this stream. More... | |
bool | AudioEnabled () const |
Get audio is enabled or not for this stream. More... | |
void | SourceType (DesktopSourceType source_type) |
Set the source type of screen/app sharing. More... | |
void | CapturePolicy (DesktopCapturePolicy capture_policy) |
Set the capturer features capture_policy Indicate the feature used by the capturer. | |
void | Fps (int fps) |
Set the frame rate. The actual frame rate of window/screen capturing may be lower than this. More... | |
This class contains parameters and methods that's needed for creating a local stream with certain screen or window as source. When a stream is created, it will not be impacted if these parameters are changed.
|
strong |
|
strong |
owt::base::LocalDesktopStreamParameters::LocalDesktopStreamParameters | ( | bool | audio_enabled, |
bool | video_enabled | ||
) |
Initialize a LocalDesktopStreamParameters.
audio_enabled | Indicates if audio is enabled for this stream. |
video_anabled | Indicates if video is enabled for this stream. |
soruce_type | Indicates if capture from screen or an app. |
capture_policy | the OR of any of the DesktopCapturePolicy options. |
|
inline |
Get audio is enabled or not for this stream.
void owt::base::LocalDesktopStreamParameters::Fps | ( | int | fps | ) |
Set the frame rate. The actual frame rate of window/screen capturing may be lower than this.
fps | The frame rate of the captured screen/window. |
|
inline |
Set the source type of screen/app sharing.
source_type | Indicate if capturing the full screen or an application. |
|
inline |
Get video is enabled or not for this stream.