Class ScrubMedia.Builder
- java.lang.Object
-
- nl.harm27.obs.websocket.api.base.BaseBuilder
-
- nl.harm27.obs.websocket.api.requests.mediacontrol.ScrubMedia.Builder
-
- Enclosing class:
- ScrubMedia
public static class ScrubMedia.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 ScrubMedia.Request
batchMessage()
Batch the message to the OBS Studio instance.String
getSourceName()
Source name.int
getTimeOffset()
Millisecond offset (positive or negative) to offset the current media position.void
sendMessage(Consumer<ScrubMedia.Response> consumer)
Send the message to the OBS Studio instance.void
setSourceName(String sourceName)
Source name.void
setTimeOffset(int timeOffset)
Millisecond offset (positive or negative) to offset the current media position.-
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.
-
getTimeOffset
public int getTimeOffset()
Millisecond offset (positive or negative) to offset the current media position.
-
setTimeOffset
public void setTimeOffset(int timeOffset)
Millisecond offset (positive or negative) to offset the current media position.
-
sendMessage
public void sendMessage(Consumer<ScrubMedia.Response> consumer)
Send the message to the OBS Studio instance.
-
batchMessage
public ScrubMedia.Request batchMessage()
Batch the message to the OBS Studio instance.
-
-