Amazon IVS Player
    Preparing search index...

    Interface PlayerError

    An interface describing the payload of the PlayerEventType.ERROR event. The interface has properties that can uniquely identify the error.

    Some valuable errors to handle:

    interface PlayerError {
        code: number;
        message: string;
        source: string;
        type: ErrorType;
    }
    Index

    Properties

    Properties

    code: number

    A code representing the specific error condition. The code values depend on the source and result types. For example, if source is "Segment", the result is ErrorType.NETWORK, and the code value is 400, this indicates that an HTTP 400 error occurred while trying to download a video segment.

    message: string

    A message describing the error.

    source: string

    The source component within the player that generated the error.

    type: ErrorType

    The result code for the error.