mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-09-24 23:31:36 +08:00
libobs,docs: Add protocol in Outputs API
This commit is contained in:
@@ -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
|
||||
-------------------------
|
||||
|
||||
|
||||
Reference in New Issue
Block a user