ErrorEvent

public class ErrorEvent : PlayerEvent

Fired when PlayerEventTypes.ERROR occurs for the THEOplayer.

  • The textual representation of the error that happened.

    Remark

    Remark:

    • Can be an error message or a representation of the error object.

    Important

    Deprecated: use errorObject.message, which contains the same message.

    Declaration

    Swift

    @available(*, deprecated, message: "Use errorObject.message instead.")
    public let error: String
  • A more descriptive THEOError containing information about the error.

    Important

    Will become non-optional in a future major release.

    Declaration

    Swift

    public let errorObject: THEOError?