Class SetBrowserSourceProperties.Builder
- java.lang.Object
-
- nl.harm27.obs.websocket.api.base.BaseBuilder
-
- nl.harm27.obs.websocket.api.requests.sources.SetBrowserSourceProperties.Builder
-
- Enclosing class:
- SetBrowserSourceProperties
public static class SetBrowserSourceProperties.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 SetBrowserSourceProperties.RequestbatchMessage()Batch the message to the OBS Studio instance.Optional<String>getCss()CSS to inject.Optional<Integer>getFps()Framerate.Optional<Integer>getHeight()Height.Optional<String>getLocalFile()file path.StringgetSource()Name of the source.Optional<String>getUrl()Url.Optional<Integer>getWidth()Width.Optional<Boolean>isIsLocalFile()Indicates that a local file is in use.Optional<Boolean>isRender()Visibility of the scene item.Optional<Boolean>isShutdown()Indicates whether the source should be shutdown when not visible.voidsendMessage(Consumer<SetBrowserSourceProperties.Response> consumer)Send the message to the OBS Studio instance.voidsetCss(String css)CSS to inject.voidsetFps(int fps)Framerate.voidsetHeight(int height)Height.voidsetIsLocalFile(boolean isLocalFile)Indicates that a local file is in use.voidsetLocalFile(String localFile)file path.voidsetRender(boolean render)Visibility of the scene item.voidsetShutdown(boolean shutdown)Indicates whether the source should be shutdown when not visible.voidsetSource(String source)Name of the source.voidsetUrl(String url)Url.voidsetWidth(int width)Width.-
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
-
getSource
public String getSource()
Name of the source.
-
setSource
public void setSource(String source)
Name of the source.
-
setIsLocalFile
public void setIsLocalFile(boolean isLocalFile)
Indicates that a local file is in use.
-
setLocalFile
public void setLocalFile(String localFile)
file path.
-
setUrl
public void setUrl(String url)
Url.
-
setCss
public void setCss(String css)
CSS to inject.
-
setWidth
public void setWidth(int width)
Width.
-
setHeight
public void setHeight(int height)
Height.
-
setFps
public void setFps(int fps)
Framerate.
-
isShutdown
public Optional<Boolean> isShutdown()
Indicates whether the source should be shutdown when not visible.
-
setShutdown
public void setShutdown(boolean shutdown)
Indicates whether the source should be shutdown when not visible.
-
setRender
public void setRender(boolean render)
Visibility of the scene item.
-
sendMessage
public void sendMessage(Consumer<SetBrowserSourceProperties.Response> consumer)
Send the message to the OBS Studio instance.
-
batchMessage
public SetBrowserSourceProperties.Request batchMessage()
Batch the message to the OBS Studio instance.
-
-