Package com.bambuser.broadcaster
Enum Class TalkbackState
- All Implemented Interfaces:
Serializable
,Comparable<TalkbackState>
,java.lang.constant.Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionTalkback stream accepted.This is the default state.This state means that there is a pending talkback request you must approve or reject.TheBroadcaster
is receiving audio, and has signaled to the server that playback has started, so the "caller" knows that there is a live talkback stream to thisBroadcaster
. -
Method Summary
Modifier and TypeMethodDescriptionstatic TalkbackState
Returns the enum constant of this class with the specified name.static TalkbackState[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
IDLE
This is the default state. There is no pending talkback request and no talkback stream playing. This state requires no action, but is useful for updating any talkback status ui. -
NEEDS_ACCEPT
This state means that there is a pending talkback request you must approve or reject.We recommend that you show a dialog asking the end user to plug in headphones, disable any silent mode and press accept or reject.
You must invoke
acceptTalkback(id)
to start receiving the stream, orstopTalkback()
to reject the request and return toIDLE
. -
ACCEPTED
-
READY
Temporary state betweenACCEPTED
andPLAYING
. TheBroadcaster
is now receiving data from the server and it will be playing soon. -
PLAYING
TheBroadcaster
is receiving audio, and has signaled to the server that playback has started, so the "caller" knows that there is a live talkback stream to thisBroadcaster
.We recommend that you show some small UI that indicates to the end user that there is an ongoing talkback stream. You can also let the end user stop the talkback stream by invoking
stopTalkback()
.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-