Package nl.harm27.obs.websocket.sender
Class VirtualCamRequestSender
- java.lang.Object
-
- nl.harm27.obs.websocket.sender.RequestSender
-
- nl.harm27.obs.websocket.sender.VirtualCamRequestSender
-
public class VirtualCamRequestSender extends RequestSender
-
-
Constructor Summary
Constructors Constructor Description VirtualCamRequestSender(BiConsumer<BaseRequest,Consumer<BaseResponse>> requestConsumer, Consumer<BaseRequest> batchConsumer, Supplier<String> messageIdSupplier)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GetVirtualCamStatus.Builder
getVirtualCamStatus()
Get current virtual cam status.StartStopVirtualCam.Builder
startStopVirtualCam()
Toggle virtual cam on or off (depending on the current virtual cam state).StartVirtualCam.Builder
startVirtualCam()
Start virtual cam.StopVirtualCam.Builder
stopVirtualCam()
Stop virtual cam.-
Methods inherited from class nl.harm27.obs.websocket.sender.RequestSender
batchMessage, getNewMessageId, sendMessage
-
-
-
-
Constructor Detail
-
VirtualCamRequestSender
public VirtualCamRequestSender(BiConsumer<BaseRequest,Consumer<BaseResponse>> requestConsumer, Consumer<BaseRequest> batchConsumer, Supplier<String> messageIdSupplier)
-
-
Method Detail
-
getVirtualCamStatus
public GetVirtualCamStatus.Builder getVirtualCamStatus()
Get current virtual cam status.- Since:
- 4.9.1
- See Also:
- OBS WebSocket Documentation
-
startStopVirtualCam
public StartStopVirtualCam.Builder startStopVirtualCam()
Toggle virtual cam on or off (depending on the current virtual cam state).- Since:
- 4.9.1
- See Also:
- OBS WebSocket Documentation
-
startVirtualCam
public StartVirtualCam.Builder startVirtualCam()
Start virtual cam. Will return an `error` if virtual cam is already active.- Since:
- 4.9.1
- See Also:
- OBS WebSocket Documentation
-
stopVirtualCam
public StopVirtualCam.Builder stopVirtualCam()
Stop virtual cam. Will return an `error` if virtual cam is not active.- Since:
- 4.9.1
- See Also:
- OBS WebSocket Documentation
-
-