libobs,docs: Add protocol in Outputs API

This commit is contained in:
tytan652
2023-03-19 15:29:03 +01:00
parent f1c95b2bd0
commit 201bcda051
7 changed files with 79 additions and 1 deletions
+25 -1
View File
@@ -234,7 +234,15 @@ Output Definition Structure (obs_output_info)
This variable specifies which codecs are supported by an encoded
output, separated by semicolon.
(Optional, though recommended)
Required if **OBS_OUTPUT_SERVICE** flag is set, otherwise
recommended.
.. member:: const char *obs_output_info.protocols
This variable specifies which protocols are supported by an output,
separated by semicolon.
Required only if **OBS_OUTPUT_SERVICE** flag is set.
.. _output_signal_handler_reference:
@@ -685,6 +693,22 @@ General Output Functions
---------------------
.. function:: const char *obs_output_get_protocols(const obs_output_t *output)
:return: Supported protocols, separated by semicolon. Always NULL if the
output is not **OBS_OUTPUT_SERVICE**.
---------------------
.. function:: bool obs_is_output_protocol_registered(const char *protocol)
Check if one of the registered output use the given protocol.
:return: A boolean showing if an output with the given
protocol is registered
---------------------
Functions used by outputs
-------------------------