obs-frontend-api: Add frontend api functions for the virtual camera
This adds functions to the frontend api to start/stop the virtual camera, to check if it is active and adds function to get the output reference. It also adds api events for when the virtual camera is started or stopped.
This commit is contained in:
parent
96ef45cef5
commit
3bc4e8ecba
6 changed files with 99 additions and 0 deletions
|
|
@ -475,3 +475,27 @@ void obs_frontend_take_source_screenshot(obs_source_t *source)
|
|||
if (callbacks_valid())
|
||||
c->obs_frontend_take_source_screenshot(source);
|
||||
}
|
||||
|
||||
obs_output_t *obs_frontend_get_virtualcam_output(void)
|
||||
{
|
||||
return !!callbacks_valid() ? c->obs_frontend_get_virtualcam_output()
|
||||
: nullptr;
|
||||
}
|
||||
|
||||
void obs_frontend_start_virtualcam(void)
|
||||
{
|
||||
if (callbacks_valid())
|
||||
c->obs_frontend_start_virtualcam();
|
||||
}
|
||||
|
||||
void obs_frontend_stop_virtualcam(void)
|
||||
{
|
||||
if (callbacks_valid())
|
||||
c->obs_frontend_stop_virtualcam();
|
||||
}
|
||||
|
||||
bool obs_frontend_virtualcam_active(void)
|
||||
{
|
||||
return !!callbacks_valid() ? c->obs_frontend_virtualcam_active()
|
||||
: false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue