Class PlayPauseMedia.Builder
- java.lang.Object
-
- nl.harm27.obs.websocket.api.base.BaseBuilder
-
- nl.harm27.obs.websocket.api.requests.mediacontrol.PlayPauseMedia.Builder
-
- Enclosing class:
- PlayPauseMedia
public static class PlayPauseMedia.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 PlayPauseMedia.RequestbatchMessage()Batch the message to the OBS Studio instance.StringgetSourceName()Source name.booleanisPlayPause()(optional) Whether to pause or play the source.voidsendMessage(Consumer<PlayPauseMedia.Response> consumer)Send the message to the OBS Studio instance.voidsetPlayPause(boolean playPause)(optional) Whether to pause or play the source.voidsetSourceName(String sourceName)Source name.-
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
-
getSourceName
public String getSourceName()
Source name.
-
setSourceName
public void setSourceName(String sourceName)
Source name.
-
isPlayPause
public boolean isPlayPause()
(optional) Whether to pause or play the source. `false` for play, `true` for pause.
-
setPlayPause
public void setPlayPause(boolean playPause)
(optional) Whether to pause or play the source. `false` for play, `true` for pause.
-
sendMessage
public void sendMessage(Consumer<PlayPauseMedia.Response> consumer)
Send the message to the OBS Studio instance.
-
batchMessage
public PlayPauseMedia.Request batchMessage()
Batch the message to the OBS Studio instance.
-
-