Chevron DownOverview
Chevron Down@hubble.gl/core

WebmEncoder

A WebM video format encoder that inherits FrameEncoder.

Constructor

Construction of the encoder class is not required. Refer to DeckAdapter.render for usage. The constructor accepts a FrameEncoderSettings object.

FrameEncoderSettings

In addition to the top level FrameEncoder settings, these settings are available under the webm namespace.

  • quality - See member note. Defaults to 0.8.

Members

  • extension - ".webm"

  • mimeType - "video/webm"

Source

modules/core/src/encoders/video/webm-encoder.js

Attributions

WebmEncoder is a wrapper around the webm-writer, which is under WTFPLv2 license, for WebM video construction.