Class SetStreamSettings.Builder
- java.lang.Object
-
- nl.harm27.obs.websocket.api.base.BaseBuilder
-
- nl.harm27.obs.websocket.api.requests.streaming.SetStreamSettings.Builder
-
- Enclosing class:
- SetStreamSettings
public static class SetStreamSettings.Builder extends BaseBuilder
-
-
Constructor Summary
Constructors Constructor Description Builder(BiConsumer<BaseRequest,Consumer<BaseResponse>> requestConsumer, Consumer<BaseRequest> batchConsumer, Supplier<String> messageIdSupplier)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SetStreamSettings.RequestbatchMessage()Batch the message to the OBS Studio instance.SetStreamSettings.SettingsgetSettings()The actual settings of the stream.StringgetType()The type of streaming service configuration, usually `rtmp_custom` or `rtmp_common`.booleanisSave()Persist the settings to disk.voidsendMessage(Consumer<SetStreamSettings.Response> consumer)Send the message to the OBS Studio instance.voidsetSave(boolean save)Persist the settings to disk.voidsetSettings(SetStreamSettings.Settings settings)The actual settings of the stream.voidsetType(String type)The type of streaming service configuration, usually `rtmp_custom` or `rtmp_common`.-
Methods inherited from class nl.harm27.obs.websocket.api.base.BaseBuilder
batchMessage, getNewMessageId, sendMessage
-
-
-
-
Constructor Detail
-
Builder
public Builder(BiConsumer<BaseRequest,Consumer<BaseResponse>> requestConsumer, Consumer<BaseRequest> batchConsumer, Supplier<String> messageIdSupplier)
-
-
Method Detail
-
getType
public String getType()
The type of streaming service configuration, usually `rtmp_custom` or `rtmp_common`.
-
setType
public void setType(String type)
The type of streaming service configuration, usually `rtmp_custom` or `rtmp_common`.
-
getSettings
public SetStreamSettings.Settings getSettings()
The actual settings of the stream.
-
setSettings
public void setSettings(SetStreamSettings.Settings settings)
The actual settings of the stream.
-
isSave
public boolean isSave()
Persist the settings to disk.
-
setSave
public void setSave(boolean save)
Persist the settings to disk.
-
sendMessage
public void sendMessage(Consumer<SetStreamSettings.Response> consumer)
Send the message to the OBS Studio instance.
-
batchMessage
public SetStreamSettings.Request batchMessage()
Batch the message to the OBS Studio instance.
-
-