Class StreamStatus
- java.lang.Object
-
- nl.harm27.obswebsocket.api.events.BaseEvent
-
- nl.harm27.obswebsocket.api.events.streaming.StreamStatus
-
public class StreamStatus extends BaseEvent
Emit every 2 seconds.- Since:
- v0.3
- See Also:
- OBS WebSocket Documentation
-
-
Constructor Summary
Constructors Constructor Description StreamStatus()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description doublegetAverageFrameTime()Average frame render time (in milliseconds).intgetBytesPerSec()Amount of data per second (in bytes) transmitted by the stream encoder.doublegetCpuUsage()Current CPU usage (percentage).doublegetFps()Current framerate.doublegetFreeDiskSpace()Free recording disk space (in megabytes).intgetKbitsPerSec()Amount of data per second (in kilobits) transmitted by the stream encoder.doublegetMemoryUsage()Current RAM usage (in megabytes).intgetNumDroppedFrames()Number of frames dropped by the encoder since the stream started.intgetNumTotalFrames()Total number of frames transmitted since the stream started.intgetOutputSkippedFrames()Number of frames skipped due to encoding lag.intgetOutputTotalFrames()Number of frames outputted.intgetRenderMissedFrames()Number of frames missed due to rendering lag.intgetRenderTotalFrames()Number of frames rendered.doublegetStrain()Percentage of dropped frames.intgetTotalStreamTime()Total time (in seconds) since the stream started.booleanisPreviewOnly()Always false (retrocompatibility).booleanisRecording()Current recording state.booleanisReplayBufferActive()Replay Buffer statusbooleanisStreaming()Current streaming state.-
Methods inherited from class nl.harm27.obswebsocket.api.events.BaseEvent
getEventType, getRecordingDuration, getRecordingTimecode, getStreamDuration, getStreamTimecode
-
-
-
-
Method Detail
-
isStreaming
public boolean isStreaming()
Current streaming state.
-
isRecording
public boolean isRecording()
Current recording state.
-
isReplayBufferActive
public boolean isReplayBufferActive()
Replay Buffer status
-
getBytesPerSec
public int getBytesPerSec()
Amount of data per second (in bytes) transmitted by the stream encoder.
-
getKbitsPerSec
public int getKbitsPerSec()
Amount of data per second (in kilobits) transmitted by the stream encoder.
-
getStrain
public double getStrain()
Percentage of dropped frames.
-
getTotalStreamTime
public int getTotalStreamTime()
Total time (in seconds) since the stream started.
-
getNumTotalFrames
public int getNumTotalFrames()
Total number of frames transmitted since the stream started.
-
getNumDroppedFrames
public int getNumDroppedFrames()
Number of frames dropped by the encoder since the stream started.
-
getFps
public double getFps()
Current framerate.
-
getRenderTotalFrames
public int getRenderTotalFrames()
Number of frames rendered.
-
getRenderMissedFrames
public int getRenderMissedFrames()
Number of frames missed due to rendering lag.
-
getOutputTotalFrames
public int getOutputTotalFrames()
Number of frames outputted.
-
getOutputSkippedFrames
public int getOutputSkippedFrames()
Number of frames skipped due to encoding lag.
-
getAverageFrameTime
public double getAverageFrameTime()
Average frame render time (in milliseconds).
-
getCpuUsage
public double getCpuUsage()
Current CPU usage (percentage).
-
getMemoryUsage
public double getMemoryUsage()
Current RAM usage (in megabytes).
-
getFreeDiskSpace
public double getFreeDiskSpace()
Free recording disk space (in megabytes).
-
isPreviewOnly
public boolean isPreviewOnly()
Always false (retrocompatibility).
-
-