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

Overview

Encoders are used to capture frames of an HTML canvas and construct them into videos. They're constructed and configured internally before each video capture. During capture, they provide asynchronous functions for adding frames and saving videos. See DeckAdapter.render for usage.

Video

All encoder classes inherit from the FrameEncoder class.

  • WebMEncoder
  • GIFEncoder
  • StreamEncoder
  • PNGSequenceEncoder
  • JPEGSequenceEncoder
Utility
  • PreviewEncoder

Attributions

Encoders started as a fork of CCapture.js, which is under MIT license.