This class contains parameters and methods that needed for creating a local camera stream. When a stream is created, it will not be impacted if these parameters are changed.
More...
#include <owt/base/localcamerastreamparameters.h>
This class contains parameters and methods that needed for creating a local camera stream. When a stream is created, it will not be impacted if these parameters are changed.
◆ LocalCameraStreamParameters()
owt::base::LocalCameraStreamParameters::LocalCameraStreamParameters |
( |
bool |
audio_enabled, |
|
|
bool |
video_enabled |
|
) |
| |
Initialize a LocalCameraStreamParameters.
- Parameters
-
audio_enabled | Indicates if audio is enabled for this stream. |
video_anabled | Indicates if video is enabled for this stream. |
◆ CameraId()
void owt::base::LocalCameraStreamParameters::CameraId |
( |
const std::string & |
camera_id | ) |
|
Set the ID of the camera to be used.
- Parameters
-
◆ Fps()
void owt::base::LocalCameraStreamParameters::Fps |
( |
int |
fps | ) |
|
Set the frame rate. If the frame rate specified is not supported on current device, creation will failed.
- Parameters
-
fps | The frame rate of the video. |
◆ Resolution()
void owt::base::LocalCameraStreamParameters::Resolution |
( |
int |
width, |
|
|
int |
height |
|
) |
| |
Set the video resolution. If the resolution specified is not supported on current device, creation will failed.
- Parameters
-
width | The width of the video. |
height | The height of the video. |
◆ StreamName()
void owt::base::LocalCameraStreamParameters::StreamName |
( |
const std::string & |
stream_name | ) |
|
Set the ID of media stream.
- Parameters
-
stream_name | The ID of media stream created. |