Package com.vonage.client.conversations
Class AudioPlayEvent
java.lang.Object
com.vonage.client.JsonableBaseObject
com.vonage.client.conversations.Event
com.vonage.client.conversations.AudioPlayEvent
- All Implemented Interfaces:
Jsonable
Represents an
EventType.AUDIO_PLAY event.-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic AudioPlayEvent.Builderbuilder()Entry point for constructing an instance of this class.getLevel()Audio volume level, with -1 being quietest, +1 being loudest and 0 the default.getLoop()Number of times to repeat the audio.Unique audio play identifier.getQueue()Whether to queue the audio.Source URL of the audio to play.Methods inherited from class com.vonage.client.conversations.Event
getFrom, getFromMember, getFromUser, getId, getTimestamp, getTypeMethods 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
-
getPlayId
Unique audio play identifier.- Returns:
- The play ID, or
nullif unknown.
-
getStreamUrl
Source URL of the audio to play.- Returns:
- The stream URL, or
nullif unspecified.
-
builder
Entry point for constructing an instance of this class.- Returns:
- A new Builder.
-
getQueue
Whether to queue the audio.- Returns:
trueif queuing is enabled, ornullif unspecified.
-
getLevel
Audio volume level, with -1 being quietest, +1 being loudest and 0 the default.- Returns:
- The volume as a Double, or
nullif unspecified.
-
getLoop
Number of times to repeat the audio.- Returns:
- The loop count as an Integer, or
nullif unspecified.
-