public static enum OpentokError.ErrorCode extends java.lang.Enum<OpentokError.ErrorCode>
Enum Constant and Description |
---|
AuthorizationFailure
An invalid API key or token was provided.
|
CameraFailed
There was an error in acquiring video from the camera.
|
ConnectionDropped
The connection to the OpenTok messaging server was dropped.
|
ConnectionFailed
The session failed to connect.
|
ConnectionRefused
A socket could not be opened to OpenTok the messaging server.
|
ConnectionTimedOut
Subscriber timed out while attempting to connect to the stream.
|
InvalidSessionId
Unable to connect: an invalid session ID was provided.
|
NoMessagingServer
There was an error connecting to the OpenTok messaging server.
|
P2PSessionMaxParticipants
A peer-to-peer enabled session can only have two participants.
|
PublisherCameraAccessDenied |
PublisherCannotAccessCamera |
PublisherInternalError
Internal error when publishing.
|
PublisherTimeout
Timeout while attempting to publish.
|
PublisherUnableToPublish |
PublisherUnexpectedPeerConnectionDisconnection |
PublisherWebRTCError
Subscriber WebRTC failure.
|
SessionBlockedCountry
Unable to connect to the session.
|
SessionConnectionTimeout
The connection timed out while attempting to connect to the session.
|
SessionDisconnected
Attempting to publish to a disconnected session.
|
SessionIllegalState
Unable to connect to a session that is already connected.
|
SessionInternalError
Internal error connecting to the session.
|
SessionInvalidSignalType
Invalid signal type.
|
SessionNullOrInvalidParameter
You passed an invalid parameter or the Session is null.
|
SessionPublisherNotFound
The publisher is unknown to this session.
|
SessionSignalDataTooLong
Invalid signal -- the data string is too long (maximum length 8196).
|
SessionSignalTypeTooLong
Invalid signal -- the type string is too long (maximum length 128).
|
SessionStateFailed
The connection timed out while attempting to get the session's state.
|
SessionSubscriberNotFound
The subscriber is unknown to this session.
|
SessionUnexpectedGetSessionInfoResponse
Unable to connect to the session.
|
SubscriberInternalError
Internal error when subscribing.
|
SubscriberServerCannotFindStream
The subscriber failed due to the stream being missing.
|
SubscriberSessionDisconnected
Attempting to subscribe to a stream in a session that you have disconnected from.
|
SubscriberWebRTCError
Subscriber WebRTC failure.
|
UnknownError |
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.
|
VideoCaptureFailed
There was an error in the video capturer
|
VideoRenderFailed
There was an error in the video renderer.
|
Modifier and Type | Method and Description |
---|---|
static OpentokError.ErrorCode |
fromTypeCode(int id) |
int |
getErrorCode() |
static OpentokError.ErrorCode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static OpentokError.ErrorCode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final OpentokError.ErrorCode UnknownError
public static final OpentokError.ErrorCode AuthorizationFailure
public static final OpentokError.ErrorCode InvalidSessionId
public static final OpentokError.ErrorCode ConnectionFailed
public static final OpentokError.ErrorCode NoMessagingServer
public static final OpentokError.ErrorCode ConnectionRefused
public static final OpentokError.ErrorCode SessionStateFailed
public static final OpentokError.ErrorCode P2PSessionMaxParticipants
public static final OpentokError.ErrorCode SessionConnectionTimeout
public static final OpentokError.ErrorCode SessionInternalError
public static final OpentokError.ErrorCode SessionInvalidSignalType
public static final OpentokError.ErrorCode SessionSignalDataTooLong
public static final OpentokError.ErrorCode SessionSignalTypeTooLong
public static final OpentokError.ErrorCode ConnectionDropped
public static final OpentokError.ErrorCode SessionDisconnected
public static final OpentokError.ErrorCode PublisherInternalError
public static final OpentokError.ErrorCode PublisherWebRTCError
getMessage()
method for
more details.public static final OpentokError.ErrorCode PublisherUnableToPublish
public static final OpentokError.ErrorCode PublisherUnexpectedPeerConnectionDisconnection
public static final OpentokError.ErrorCode PublisherCannotAccessCamera
public static final OpentokError.ErrorCode PublisherCameraAccessDenied
public static final OpentokError.ErrorCode ConnectionTimedOut
public static final OpentokError.ErrorCode SubscriberSessionDisconnected
public static final OpentokError.ErrorCode SubscriberWebRTCError
getMessage()
method for
more details.public static final OpentokError.ErrorCode SubscriberServerCannotFindStream
public static final OpentokError.ErrorCode SubscriberInternalError
public static final OpentokError.ErrorCode UnknownPublisherInstance
public static final OpentokError.ErrorCode UnknownSubscriberInstance
public static final OpentokError.ErrorCode SessionNullOrInvalidParameter
public static final OpentokError.ErrorCode VideoCaptureFailed
public static final OpentokError.ErrorCode CameraFailed
public static final OpentokError.ErrorCode VideoRenderFailed
public static final OpentokError.ErrorCode SessionSubscriberNotFound
Session.unsubscribe(SubscriberKit subscriber)
with a subscriber that
is not associated with the session.public static final OpentokError.ErrorCode SessionPublisherNotFound
Session.unpublish(PublisherKit publisher)
with a publisher that is not
publishing a stream to the session.public static final OpentokError.ErrorCode PublisherTimeout
public static final OpentokError.ErrorCode SessionBlockedCountry
public static final OpentokError.ErrorCode SessionUnexpectedGetSessionInfoResponse
public static final OpentokError.ErrorCode SessionIllegalState
public static OpentokError.ErrorCode[] values()
for (OpentokError.ErrorCode c : OpentokError.ErrorCode.values()) System.out.println(c);
public static OpentokError.ErrorCode valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic int getErrorCode()
public static OpentokError.ErrorCode fromTypeCode(int id)