Options
All
  • Public
  • Public/Protected
  • All
Menu

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:

Hierarchy

  • PlayerError

Index

Properties

Properties

code

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

message: string

A message describing the error.

source

source: string

The source component within the player that generated the error.

type

type: ErrorType

The result code for the error.

Generated using TypeDoc