Table of Contents
Chevron DownOverview
Chevron Down@hubble.gl/core

FrameEncoder

A base class for encoders that implements the Encoder abstract class.

Constructor

Parameters:

  • quality (Number, Optional)
  • framerate (Number, Optional)

Members

extension (String)

File extension.

  • Default: ""
mimeType (String)
  • Default: ""

MIME type. See Common MIME types

quality (Number)
  • Default: 0.8

Generic quality value. For canvas capture see HTMLCanvasElement.toDataURL

framerate (Number)
  • Default: 30

Methods

getMimeType

Returns:

string of mime type.

Source

modules/core/src/encoders/frame-encoder.js