#include <media.hpp>
◆ VideoWindow()
pj::VideoWindow::VideoWindow |
( |
int |
win_id | ) |
|
◆ getInfo()
Get window info.
- Returns
- video window info.
◆ getVideoMedia()
Get video media or conference bridge port of the renderer of this video window.
- Returns
- Video media of this renderer window.
◆ Show()
void pj::VideoWindow::Show |
( |
bool |
show | ) |
|
throw | ( | Error |
| ) | | |
Show or hide window. This operation is not valid for native windows (VideoWindowInfo.isNative=true), on which native windowing API must be used instead.
- Parameters
-
show | Set to true to show the window, false to hide the window. |
◆ setPos()
Set video window position. This operation is not valid for native windows (VideoWindowInfo.isNative=true), on which native windowing API must be used instead.
- Parameters
-
◆ setSize()
void pj::VideoWindow::setSize |
( |
const MediaSize & |
size | ) |
|
throw | ( | Error |
| ) | | |
Resize window. This operation is not valid for native windows (VideoWindowInfo.isNative=true), on which native windowing API must be used instead.
- Parameters
-
◆ rotate()
void pj::VideoWindow::rotate |
( |
int |
angle | ) |
|
throw | ( | Error |
| ) | | |
Rotate the video window. This function will change the video orientation and also possibly the video window size (width and height get swapped). This operation is not valid for native windows (VideoWindowInfo.isNative =true), on which native windowing API must be used instead.
- Parameters
-
angle | The rotation angle in degrees, must be multiple of 90. Specify positive value for clockwise rotation or negative value for counter-clockwise rotation. |
◆ setWindow()
Set output window. This operation is valid only when the underlying video device supports PJMEDIA_VIDEO_DEV_CAP_OUTPUT_WINDOW capability AND allows the output window to be changed on-the-fly, otherwise Error will be thrown. Currently it is only supported on Android.
- Parameters
-
win | The new output window. |
◆ setFullScreen()
void pj::VideoWindow::setFullScreen |
( |
bool |
enabled | ) |
|
throw | ( | Error |
| ) | | |
Set video window full-screen. This operation is valid only when the underlying video device supports PJMEDIA_VID_DEV_CAP_OUTPUT_FULLSCREEN capability. Currently it is only supported on SDL backend.
- Parameters
-
enabled | Set to true if full screen is desired, false otherwise. |
◆ setFullScreen2()
Set video window full-screen. This operation is valid only when the underlying video device supports PJMEDIA_VID_DEV_CAP_OUTPUT_FULLSCREEN capability. Currently it is only supported on SDL backend.
- Parameters
-
mode | Fullscreen mode, see pjmedia_vid_dev_fullscreen_flag. |
The documentation for this class was generated from the following file: