lib / tv.smartclip.smartclientandroid.lib.smartcorefacade / ErrorReceiver

ErrorReceiver

interface ErrorReceiver

Should be used to propagate any Throwable or SxMediaError.

Functions

newError

Propagates a new SxMediaError to the core and any registered EventProvider listener.

abstract fun newError(error: SxMediaError): Unit

Builds a new SxMediaError out of the provided throwable thrown by the ExoPlayer and propagates it to the core and any registered EventProvider listener.

abstract fun newError(throwable: Throwable): Unit

Inheritors

ErrorManager

Responsible for collecting errors and forward them to the EventProvider.

class ErrorManager : IKoinDi, ErrorJsInterface, ErrorReceiver, Releasable