java.lang.Object | ||||
↳ | java.lang.Throwable | |||
↳ | java.lang.Exception | |||
↳ | java.lang.RuntimeException | |||
↳ | com.amazonaws.ivs.player.PlayerException |
Represents an error that occurred during media playback. The exception has additional properties that can uniquely identify the exception.
Some valuable errors to handle:
ERROR_AUTHORIZATION
code: 403 - This is a private stream and viewer authorization is missing or invalid.ERROR_NOT_AVAILABLE
code: 429 - The concurrent-viewers limit has been reached. See Amazon IVS Service Quotas.ERROR_NOT_AVAILABLE
code: 404 - The stream is invalid (e.g., the playback URL is incorrect) or not online.Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int | getCode() | ||||||||||
String | getErrorMessage() | ||||||||||
ErrorType | getErrorType() | ||||||||||
String | getSource() |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
getSource()
is "Segment", the result is
ERROR_NETWORK
, and the code value is 400, this indicates that an HTTP 400
error occurred while trying to download a video segment.
getMessage()
in that
this contains only the error text and not any source or code value.