public static class StraasMediaCore.ErrorReason extends Object
| Modifier and Type | Class and Description | 
|---|---|
static interface  | 
StraasMediaCore.ErrorReason.ErrorReasonType  | 
| Modifier and Type | Field and Description | 
|---|---|
static String | 
DATA_DESERIALIZE_ERROR
Caused by SDK can't handle the current server response format. 
 | 
static String | 
DATA_SOURCE_ERROR
Occurs when an error is encountered when trying to read from the streams of data. 
 | 
static String | 
INTERNAL_ERROR
Caused by undefined player error. 
 | 
static String | 
MEDIA_PERMISSION_DENIAL
Caused by this media may have monetization rules and the user has to pay for it. 
 | 
static String | 
NETWORK_ERROR
Occurs when failed to connect to the server. 
 | 
static String | 
NOT_FOUND
This happens when the media you are trying to access is not found on the server, or it
 hasn't been loaded to client from the server. 
 | 
static String | 
NOT_PUBLIC
Occurs when the content you are trying to access is not found on server. 
 | 
static String | 
PLAYLIST_STUCK
This error occurs when the playlist is stuck. 
 | 
static String | 
SLOW_INTERNET_SPEED
This error occurs when the speed of internet connection between the client and the server
 is too slow to do the operation (e.g. playing a video content) normally. 
 | 
static String | 
SOCKET_CONNECTION_ERROR
Error occurs when client tries to establish the socket connection. 
 | 
static String | 
TEMPORARILY_UNAVAILABLE
Occurs when Straas server has some trouble temporarily or there is something wrong with the
 broadcaster of the live event. 
 | 
static String | 
TOO_MANY_REQUESTS
Too many requests for the server, please try again later. 
 | 
static String | 
UNAUTHORIZED
The user is unauthorized because the token in  
Identity is invalid or expired. | 
static String | 
UNKNOWN
Occurs when unexpected error happened. 
 | 
| Constructor and Description | 
|---|
ErrorReason()  | 
public static final String NETWORK_ERROR
PlaybackStateCompat.getErrorMessage() when PlaybackStateCompat.getState() is
 PlaybackStateCompat.STATE_ERROR.public static final String DATA_SOURCE_ERROR
PlaybackStateCompat.getErrorMessage() when PlaybackStateCompat.getState() is
 PlaybackStateCompat.STATE_ERROR.public static final String SLOW_INTERNET_SPEED
PlaybackStateCompat.getErrorMessage() when PlaybackStateCompat.getState() is
 PlaybackStateCompat.STATE_ERROR.public static final String PLAYLIST_STUCK
PlaybackStateCompat.getErrorMessage() when PlaybackStateCompat.getState() is
 PlaybackStateCompat.STATE_ERROR.public static final String INTERNAL_ERROR
PlaybackStateCompat.getErrorMessage() when PlaybackStateCompat.getState() is
 PlaybackStateCompat.STATE_ERROR.public static final String DATA_DESERIALIZE_ERROR
PlaybackStateCompat.getErrorMessage() when PlaybackStateCompat.getState() is
 PlaybackStateCompat.STATE_ERROR.public static final String NOT_FOUND
subscribed.
  One of the error message either from subscribing list info, or from
 PlaybackStateCompat.getErrorMessage() when PlaybackStateCompat.getState() is
 PlaybackStateCompat.STATE_ERROR.public static final String NOT_PUBLIC
PlaybackStateCompat.getErrorMessage() when PlaybackStateCompat.getState() is
 PlaybackStateCompat.STATE_ERROR.public static final String MEDIA_PERMISSION_DENIAL
PlaybackStateCompat.getErrorMessage() when PlaybackStateCompat.getState() is
 PlaybackStateCompat.STATE_ERROR.public static final String TEMPORARILY_UNAVAILABLE
PlaybackStateCompat.getErrorMessage() when PlaybackStateCompat.getState() is
 PlaybackStateCompat.STATE_ERROR.public static final String SOCKET_CONNECTION_ERROR
PlaybackStateCompat.getErrorMessage() when PlaybackStateCompat.getState() is
 PlaybackStateCompat.STATE_ERROR.public static final String UNAUTHORIZED
Identity is invalid or expired.
 You can use StraasMediaCore.setIdentity(Identity) to reset the Identity.
  One of the error message either from subscribing list info, or from
 PlaybackStateCompat.getErrorMessage() when PlaybackStateCompat.getState() is
 PlaybackStateCompat.STATE_ERROR.public static final String TOO_MANY_REQUESTS
PlaybackStateCompat.getErrorMessage() when PlaybackStateCompat.getState() is
 PlaybackStateCompat.STATE_ERROR.public static final String UNKNOWN
PlaybackStateCompat.getErrorMessage() when PlaybackStateCompat.getState() is
 PlaybackStateCompat.STATE_ERROR.