Skip to content
Function

registerMediabunnyServer

ts
registerMediabunnyServer(): void;

Registers video and audio decoders and encoders for all codecs, using FFmpeg's libavcodec under the hood. Additionally, a custom VideoSample transformer based on libavfilter is registered to enable resizing, rotation and cropping of video frames.

Make sure to call this function before interacting with Mediabunny.

The decoders and encoders will automatically detect hardware acceleration support for each codec and platform and make use of it if applicable.

Released under the Mozilla Public License 2.0.