This class contains parameters and methods that needed for creating a local customized 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 customized stream. When a stream is created, it will not be impacted if these parameters are changed.
◆ LocalCustomizedStreamParameters()
owt::base::LocalCustomizedStreamParameters::LocalCustomizedStreamParameters |
( |
bool |
audio_enabled, |
|
|
bool |
video_enabled |
|
) |
| |
|
inline |
Initialize a LocalCustomizedStreamParameters for YUV input.
- Parameters
-
audio_enabled | Indicates if audio is enabled for this stream. |
video_anabled | Indicates if video is enabled for this stream. |
◆ Bitrate()
void owt::base::LocalCustomizedStreamParameters::Bitrate |
( |
int |
bitrate_kbps | ) |
|
|
inline |
Set the bitrate of encoded frame.
- Parameters
-
bitrate_kbps | The bitrate expected for the encoded stream. |
◆ Fps()
void owt::base::LocalCustomizedStreamParameters::Fps |
( |
int |
fps | ) |
|
|
inline |
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::LocalCustomizedStreamParameters::Resolution |
( |
int |
width, |
|
|
int |
height |
|
) |
| |
|
inline |
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. |