public static class AudioConnectorProperties.Builder
extends java.lang.Object
AudioConnectorProperties.| Constructor and Description |
|---|
Builder(java.lang.String uri)
Constructor for the AudioConnectorProperties.Builder, using a string to
define the WebSocket URI.
|
Builder(java.net.URI uri)
Constructor for the AudioConnectorProperties.Builder, using a URI to
define the WebSocket URI.
|
| Modifier and Type | Method and Description |
|---|---|
AudioConnectorProperties.Builder |
addHeader(java.lang.String key,
java.lang.String value)
Adds a header entry to this object's headers property.
|
AudioConnectorProperties.Builder |
addHeaders(java.util.Map<java.lang.String,java.lang.String> headers)
Puts all entries of the map into the headers parameter.
|
AudioConnectorProperties.Builder |
addStream(java.lang.String stream)
Adds an OpenTok stream (with the corresponding stream ID) to include in the WebSocket audio.
|
AudioConnectorProperties.Builder |
addStreams(java.util.Collection<java.lang.String> streams)
Adds OpenTok streams (with the corresponding stream IDs) to include in the WebSocket audio.
|
AudioConnectorProperties.Builder |
addStreams(java.lang.String... streams)
Adds OpenTok streams (with the corresponding stream IDs) to include in the WebSocket audio.
|
AudioConnectorProperties |
build()
Builds the AudioConnectorProperties object.
|
public Builder(java.net.URI uri)
uri - The publicly reachable WebSocket URI to be used for the destination
of the audio stream.public Builder(java.lang.String uri)
uri - The publicly reachable WebSocket URI to be used for the destination of
the audio stream, as a string (such as "wss://example.com/ws-endpoint").public AudioConnectorProperties.Builder addStream(java.lang.String stream)
stream - The stream ID.public AudioConnectorProperties.Builder addStreams(java.lang.String... streams)
streams - The stream IDs to add.public AudioConnectorProperties.Builder addStreams(java.util.Collection<java.lang.String> streams)
streams - The collection of stream IDs to add.public AudioConnectorProperties.Builder addHeaders(java.util.Map<java.lang.String,java.lang.String> headers)
headers - The map of header key-value pairs to append.public AudioConnectorProperties.Builder addHeader(java.lang.String key, java.lang.String value)
key - Header key.value - Header value.public AudioConnectorProperties build()
AudioConnectorProperties object.