Package com.vonage.client.video
Class Websocket
java.lang.Object
com.vonage.client.JsonableBaseObject
com.vonage.client.video.Websocket
- All Implemented Interfaces:
Jsonable
Defines the properties in
ConnectRequest.getWebsocket().- Since:
- 8.5.0
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumRepresents the possible audio sampling rate values for a WebSocket connection. -
Method Summary
Modifier and TypeMethodDescriptionAudio sampling rate in Hz.Headers to be sent to your WebSocket server with each message, with a maximum length of 512 bytes.Stream IDs for the Vonage Video streams you want to include in the WebSocket audio.getUri()A publicly reachable WebSocket URI to be used for the destination of the audio stream.Methods inherited from class com.vonage.client.JsonableBaseObject
createJsonObjectMapper, equals, hashCode, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.vonage.client.Jsonable
toJson, updateFromJson
-
Method Details
-
getUri
A publicly reachable WebSocket URI to be used for the destination of the audio stream.- Returns:
- The WebSocket URI.
-
getStreams
Stream IDs for the Vonage Video streams you want to include in the WebSocket audio. If you omitted, all streams in the session will be included.- Returns:
- The collection of stream IDs to include, or
nullif not specified.
-
getHeaders
Headers to be sent to your WebSocket server with each message, with a maximum length of 512 bytes.- Returns:
- The header key-value pairs as a Map, or
nullif not specified.
-
getAudioRate
Audio sampling rate in Hz.- Returns:
- The sample rate as an enum, or
nullif not specified.
-