Class StreamSettings
- java.lang.Object
-
- nl.harm27.obswebsocket.api.complex.StreamSettings
-
public class StreamSettings extends Object
Settings for the stream.
-
-
Constructor Summary
Constructors Constructor Description StreamSettings()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<String>
getKey()
The publish key of the stream.Optional<String>
getPassword()
If authentication is enabled, the password for the streaming server.Optional<String>
getServer()
The publish URL.Optional<String>
getService()
The used serviceOptional<String>
getUsername()
If authentication is enabled, the username for the streaming server.boolean
isBandwidthTest()
Bandwidth Test enabledboolean
isUseAuth()
Indicates whether authentication should be used when connecting to the streaming server.void
setBandwidthTest(boolean bandwidthTest)
Bandwidth Test enabledvoid
setKey(String key)
The publish key of the stream.void
setPassword(String password)
If authentication is enabled, the password for the streaming server.void
setServer(String server)
The publish URL.void
setService(String service)
The used servicevoid
setUseAuth(boolean useAuth)
Indicates whether authentication should be used when connecting to the streaming server.void
setUsername(String username)
If authentication is enabled, the username for the streaming server.
-
-
-
Method Detail
-
setServer
public void setServer(String server)
The publish URL.
-
setKey
public void setKey(String key)
The publish key of the stream.
-
isUseAuth
public boolean isUseAuth()
Indicates whether authentication should be used when connecting to the streaming server.
-
setUseAuth
public void setUseAuth(boolean useAuth)
Indicates whether authentication should be used when connecting to the streaming server.
-
getUsername
public Optional<String> getUsername()
If authentication is enabled, the username for the streaming server. Ignored if use_auth is not set to true.
-
setUsername
public void setUsername(String username)
If authentication is enabled, the username for the streaming server. Ignored if use_auth is not set to true.
-
getPassword
public Optional<String> getPassword()
If authentication is enabled, the password for the streaming server. Ignored if use_auth is not set to true.
-
setPassword
public void setPassword(String password)
If authentication is enabled, the password for the streaming server. Ignored if use_auth is not set to true.
-
setService
public void setService(String service)
The used service
-
isBandwidthTest
public boolean isBandwidthTest()
Bandwidth Test enabled
-
setBandwidthTest
public void setBandwidthTest(boolean bandwidthTest)
Bandwidth Test enabled
-
-