Package com.opentok.android
Enum Class OpentokError.ErrorCode
- All Implemented Interfaces:
Serializable
,Comparable<OpentokError.ErrorCode>
,Constable
- Enclosing class:
OpentokError
Defines error code values for OpentokError objects.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAn invalid API key or token was provided.There was an error in acquiring video from the camera.The connection to the OpenTok messaging server was dropped.The session failed to connect.A socket could not be opened to OpenTok the messaging server.Subscriber timed out while attempting to connect to the stream.Internal error while decrypting a packetUnsupported media codec for decryptionInternal error while encrypting a packetSecret mismatch while decrypting a packetTried to join an end-to-end encrypted session without an encryption secretUnsupported media codec for encryptionInvalid encryption secretUnable to connect: an invalid session ID was provided.There was an error connecting to the OpenTok messaging server.A peer-to-peer enabled session can only have two participants.Internal error when publishing.Timeout while attempting to publish.Subscriber WebRTC failure.Unable to connect to the session.The client tried to connect to a session that has exceeded the limit for simultaneous connections.The connection timed out while attempting to connect to the session.Attempting to publish to a disconnected session.Unable to connect to a session that is already connected.Internal error connecting to the session.Invalid signal type.You passed an invalid parameter or the Session is null.The publisher is unknown to this session.Invalid signal -- the data string is too long (maximum length 8196).Invalid signal -- the type string is too long (maximum length 128).The connection timed out while attempting to get the session's state.The subscriber is unknown to this session.Unable to force mute -- perhaps because the client's capabilities are limited.Unable to send signal -- perhaps because the client's capabilities are limited (e.g., a publisher-only token).Unable to connect to the session.Internal error when subscribing.The subscriber failed due to the stream being missing.The client tried to subscribe to a stream in a session that has exceeded the limit for simultaneous streams.Subscriber WebRTC failure.Cannot unpublish: An unknown Publisher instance was passed into the Session.unpublish() method.Cannot unsubscribe: An unknown Subscriber instance was passed into the Session.unsubscribe() method.There was an error in the video capturer.There was an error in the video renderer. -
Method Summary
Modifier and TypeMethodDescriptionstatic OpentokError.ErrorCode
fromTypeCode
(int id) Build Type from error code.int
Returns errorCode.static OpentokError.ErrorCode
Returns the enum constant of this class with the specified name.static OpentokError.ErrorCode[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
UnknownError
-
AuthorizationFailure
An invalid API key or token was provided. -
InvalidSessionId
Unable to connect: an invalid session ID was provided. -
ConnectionFailed
The session failed to connect. -
NoMessagingServer
There was an error connecting to the OpenTok messaging server. -
ConnectionRefused
A socket could not be opened to OpenTok the messaging server. Check that outbound ports 443 and 8080 are accessible. -
SessionStateFailed
The connection timed out while attempting to get the session's state. Check the network connection. -
P2PSessionMaxParticipants
A peer-to-peer enabled session can only have two participants. -
SessionConnectionTimeout
The connection timed out while attempting to connect to the session. Check the network connection. -
SessionInternalError
Internal error connecting to the session. Try connecting again. -
SessionInvalidSignalType
Invalid signal type. -
SessionSignalDataTooLong
Invalid signal -- the data string is too long (maximum length 8196). -
SessionSignalTypeTooLong
Invalid signal -- the type string is too long (maximum length 128). -
SessionUnableToForceMute
Unable to force mute -- perhaps because the client's capabilities are limited. -
SessionUnableToSendSignal
Unable to send signal -- perhaps because the client's capabilities are limited (e.g., a publisher-only token). -
ConnectionDropped
The connection to the OpenTok messaging server was dropped. Check the network connection. -
SessionDisconnected
Attempting to publish to a disconnected session. -
PublisherInternalError
Internal error when publishing. Try publishing again. -
PublisherWebRTCError
Subscriber WebRTC failure. Call thegetMessage()
method for more details. -
PublisherUnableToPublish
-
PublisherUnexpectedPeerConnectionDisconnection
-
PublisherCannotAccessCamera
-
PublisherCameraAccessDenied
-
ConnectionTimedOut
Subscriber timed out while attempting to connect to the stream. Try resubscribing to the stream. -
SubscriberWebRTCError
Subscriber WebRTC failure. Call thegetMessage()
method for more details. -
SubscriberServerCannotFindStream
The subscriber failed due to the stream being missing. This can happen if the subscriber is created at the same time the stream is removed from the session. -
SubscriberStreamLimitExceeded
The client tried to subscribe to a stream in a session that has exceeded the limit for simultaneous streams. -
SubscriberInternalError
Internal error when subscribing. Try subscribing again. -
UnknownPublisherInstance
Cannot unpublish: An unknown Publisher instance was passed into the Session.unpublish() method. -
UnknownSubscriberInstance
Cannot unsubscribe: An unknown Subscriber instance was passed into the Session.unsubscribe() method. -
SessionNullOrInvalidParameter
You passed an invalid parameter or the Session is null. -
VideoCaptureFailed
There was an error in the video capturer. -
CameraFailed
There was an error in acquiring video from the camera. -
VideoRenderFailed
There was an error in the video renderer. -
SessionSubscriberNotFound
The subscriber is unknown to this session. This is usually the result of callingSession.unsubscribe(SubscriberKit subscriber)
with a subscriber that is not associated with the session. -
SessionPublisherNotFound
The publisher is unknown to this session. This is usually the result of callingSession.unpublish(PublisherKit publisher)
with a publisher that is not publishing a stream to the session. -
PublisherTimeout
Timeout while attempting to publish. -
SessionBlockedCountry
Unable to connect to the session. Terms of service violation: export compliance. -
SessionConnectionLimitExceeded
The client tried to connect to a session that has exceeded the limit for simultaneous connections. -
SessionUnexpectedGetSessionInfoResponse
Unable to connect to the session. Try connecting again. -
SessionIllegalState
Unable to connect to a session that is already connected. Or unable to subscribe to a stream that is no longer in the session. -
EncryptionSecretMissing
Tried to join an end-to-end encrypted session without an encryption secret -
EncryptionInternalError
Internal error while encrypting a packet -
DecryptionInternalError
Internal error while decrypting a packet -
EncryptionSecretMismatch
Secret mismatch while decrypting a packet -
InvalidEncryptionSecret
Invalid encryption secret -
EncryptionUnsupportedCodec
Unsupported media codec for encryption -
DecryptionUnsupportedCodec
Unsupported media codec for decryption -
MediaTransformerInternalError
-
MediaTransformerInvalidType
-
MediaTransformerNameNotProvided
-
MediaTransformerCustomCallbackNotProvided
-
MediaTransformerPropertiesNotProvided
-
MediaTransformerModelNotFound
-
MediaTransformerOpenTokTransformersLibraryNotLoaded
-
MediaTransformerOpenTokTransformersSymbolNotFound
-
OpenTokTransformersInternalError
-
OpenTokTransformersInvalidParam
-
OpenTokTransformersNameNotProvided
-
OpenTokTransformersInvalidName
-
OpenTokTransformersPropertiesNotProvided
-
OpenTokTransformersInvalidPropertiesFormat
-
OpenTokTransformersModelFileNotFound
-
OpenTokTransformersRadiusPropertyNotProvided
-
OpenTokTransformersInvalidRadiusProperty
-
OpenTokTransformersCustomRadiusPropertyNotProvided
-
OpenTokTransformersInvalidCustomRadiusProperty
-
OpenTokTransformersImageFilePathPropertyNotProvided
-
OpenTokTransformersImageFilePathNotFound
-
OpenTokTransformersMlTransformerInitError
-
-
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
-
getErrorCode
public int getErrorCode()Returns errorCode.- Returns:
- errorCode
-
fromTypeCode
Build Type from error code.
-