Skip to content
Type

VideoSinkDecoderOptions ​

Describes additional decoder preferences for video sinks.

ts
type VideoSinkDecoderOptions = {
	hardwareAcceleration?: 'no-preference' | 'prefer-hardware' | 'prefer-software';
	optimizeForLatency?: boolean;
};

Used by ​

Properties ​

hardwareAcceleration ​

ts
hardwareAcceleration?: 'no-preference' | 'prefer-hardware' | 'prefer-software';

A hint that configures the hardware acceleration method of the decoder. This is best left on 'no-preference', the default.

optimizeForLatency ​

ts
optimizeForLatency?: boolean;

Hint that the selected decoder should be configured to minimize the number of packets that have to be decoded before video frames are output.

Released under the Mozilla Public License 2.0.