A class containing developer-friendly error codes mapped from CastStatusCodes.
Some CastStatusCodes
are used by the Cast SDK internally. The CastReasonCodes
provides detailed explanation for those CastStatusCodes.
| @interface | CastReasonCodes.CastReasonType | Annotation used for the CastReasonCodes. |
|
| int | APPLICATION_LAUNCH_ERROR | Reason code indicating an application launch error. |
| int | CASTING_ROUTE_CHANGED | Reason code indicating that the Cast session is ended when the media route is changed. |
| int | CASTING_STOPPED | Reason code indicating that the Cast session is explicitly stopped by users. |
| int | CAST_INTERNAL_ERROR | Reason code indicating internal Cast SDK errors that should be rare to happen. |
| int | CAST_SOCKET_ERROR | Reason code indicating a Cast socket error. |
| int | CAST_TIMEOUT | Reason code indicating a Cast SDK operation has timed out. |
| int | NETWORK_ERROR | Reason code indicating network errors. |
| int | RECEIVER_APP_NOT_RUNNING | Reason code indicating that the Cast session has been taken over by another Cast session. |
| int | SESSION_RESUME_FAILED | Reason code indicating that the previously saved Cast session is unable to resume. |
| int | SESSION_START_FAILED | Reason code indicating that the starting session is unable to start. |
| int | UNKNOWN_REASON | Reason code indicating unknown reason. |
Reason code indicating an application launch error.
Reason code indicating that the Cast session is ended when the media route is changed.
Reason code indicating that the Cast session is explicitly stopped by users.
Reason code indicating internal Cast SDK errors that should be rare to happen.
Reason code indicating a Cast socket error. Cast socket errors may be caused by events such as a loss of network connectivity or the receiver being powered off, among others.
Reason code indicating a Cast SDK operation has timed out. For example, the message exchanging between the sender and the receiver has timed out in the media control channel.
Reason code indicating network errors. For example, the device lost its WiFi connection or switched networks.
Reason code indicating that the Cast session has been taken over by another Cast session. For example, casting a new app to the same Cast device will take over the existing Cast session of the other app.
Reason code indicating that the previously saved Cast session is unable to resume. This is usually not a critical issue. It means that the saved Cast session can not be resumed in the current environmental condition.
Reason code indicating that the starting session is unable to start. This should be rare to happen. It means that the environmental condition is not satisfied for starting a session.
Reason code indicating unknown reason.