Decoder class responsible for decoding video frames and rendering them using WebGL. Handles frame queueing, decoding, and rendering through WebGL.

Implements

Constructors

  • Creates an instance of the Decoder class.

    Parameters

    • originalCanvas: HTMLCanvasElement

      The original HTML canvas element to render frames onto

    • logger: ILogger

      Logger instance for debugging and error reporting

    Returns Decoder

    When video decoder configuration is not supported

Accessors

Methods

  • Processes and decodes all queued video frame messages. Skips processing if the decoder isn't ready or the queue is empty.

    Returns void

    When decoding fails for a video chunk