5 #ifndef OWT_BASE_LOCALCAMERASTREAMPARAMETERS_H_ 6 #define OWT_BASE_LOCALCAMERASTREAMPARAMETERS_H_ 8 #include "owt/base/commontypes.h" 33 void CameraId(
const std::string& camera_id);
38 void StreamName(
const std::string& stream_name);
55 std::string
CameraId()
const {
return camera_id_; }
56 std::string
StreamName()
const {
return stream_name_; }
57 int ResolutionWidth()
const {
return resolution_width_; }
58 int ResolutionHeight()
const {
return resolution_height_; }
59 int Fps()
const {
return fps_; }
60 bool VideoEnabled()
const {
return video_enabled_; }
61 bool AudioEnabled()
const {
return audio_enabled_; }
64 std::string camera_id_;
65 std::string stream_name_;
66 int resolution_width_;
67 int resolution_height_;
86 video_enabled_ = video_enabled;
87 audio_enabled_ = audio_enabled;
90 resolution_width_ = resolution_height_ = 0;
101 resolution_width_ = width;
102 resolution_height_ = height;
118 bitrate_kbps_ = bitrate_kbps;
121 int ResolutionWidth()
const {
return resolution_width_; }
122 int ResolutionHeight()
const {
return resolution_height_; }
123 int Fps()
const {
return fps_; }
124 uint32_t
Bitrate()
const {
return bitrate_kbps_; }
129 bool VideoEnabled()
const {
return video_enabled_; }
134 bool AudioEnabled()
const {
return audio_enabled_; }
139 int resolution_width_;
140 int resolution_height_;
142 uint32_t bitrate_kbps_;
200 source_type_ = source_type;
207 capture_policy_ = capture_policy;
216 int Fps()
const {
return fps_; }
229 #endif // OWT_BASE_LOCALCAMERASTREAMPARAMETERS_H_
DesktopSourceType
Definition: localcamerastreamparameters.h:167
bool AudioEnabled() const
Get audio is enabled or not for this stream.
Definition: localcamerastreamparameters.h:193
void Fps(int fps)
Set the frame rate. The actual frame rate of window/screen capturing may be lower than this...
LocalCameraStreamParameters(bool audio_enabled, bool video_enabled)
Initialize a LocalCameraStreamParameters.
void CapturePolicy(DesktopCapturePolicy capture_policy)
Set the capturer features capture_policy Indicate the feature used by the capturer.
Definition: localcamerastreamparameters.h:206
void Fps(int fps)
Set the frame rate. If the frame rate specified is not supported on current device, creation will failed.
void Fps(int fps)
Set the frame rate. If the frame rate specified is not supported on current device, creation will failed.
Definition: localcamerastreamparameters.h:110
LocalCustomizedStreamParameters(bool audio_enabled, bool video_enabled)
Initialize a LocalCustomizedStreamParameters for YUV input.
Definition: localcamerastreamparameters.h:85
LocalDesktopStreamParameters(bool audio_enabled, bool video_enabled)
Initialize a LocalDesktopStreamParameters.
bool VideoEnabled() const
Get video is enabled or not for this stream.
Definition: localcamerastreamparameters.h:188
Definition: audioplayerinterface.h:8
This class contains parameters and methods that's needed for creating a local stream with certain scr...
Definition: localcamerastreamparameters.h:150
This class contains parameters and methods that needed for creating a local customized stream...
Definition: localcamerastreamparameters.h:78
Capture from application.
Capture from whole screen.
DesktopCapturePolicy
Definition: localcamerastreamparameters.h:152
void SourceType(DesktopSourceType source_type)
Set the source type of screen/app sharing.
Definition: localcamerastreamparameters.h:199
void StreamName(const std::string &stream_name)
Set the ID of media stream.
void CameraId(const std::string &camera_id)
Set the ID of the camera to be used.
This class contains parameters and methods that needed for creating a local camera stream...
Definition: localcamerastreamparameters.h:17
void Resolution(int width, int height)
Set the video resolution. If the resolution specified is not supported on current device...
Definition: localcamerastreamparameters.h:100
With this policy set, capturer can send out scaled captured frame.
void Bitrate(int bitrate_kbps)
Set the bitrate of encoded frame.
Definition: localcamerastreamparameters.h:117
void Resolution(int width, int height)
Set the video resolution. If the resolution specified is not supported on current device...