Class StartStreaming.Stream
- java.lang.Object
-
- nl.harm27.obswebsocket.api.requests.streaming.StartStreaming.Stream
-
- Enclosing class:
- StartStreaming
public static class StartStreaming.Stream extends Object
Special stream configuration. Please note: these won't be saved to OBS' configuration.
-
-
Constructor Summary
Constructors Constructor Description Stream()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
setMetadata(Object metadata)
Adds the given object parameters as encoded query string parameters to the 'key' of the RTMP stream.void
setSettings(StreamSettings settings)
Settings for the stream.void
setType(String type)
If specified ensures the type of stream matches the given type (usually 'rtmp_custom' or 'rtmp_common').
-
-
-
Method Detail
-
setType
public void setType(String type)
If specified ensures the type of stream matches the given type (usually 'rtmp_custom' or 'rtmp_common'). If the currently configured stream type does not match the given stream type, all settings must be specified in the settings object or an error will occur when starting the stream.
-
setMetadata
public void setMetadata(Object metadata)
Adds the given object parameters as encoded query string parameters to the 'key' of the RTMP stream. Used to pass data to the RTMP service about the streaming. May be any String, Numeric, or Boolean field.
-
setSettings
public void setSettings(StreamSettings settings)
Settings for the stream.
-
-