We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3cd426f + 9a4ac54 commit 77944c3Copy full SHA for 77944c3
samples/encode-decode-worker/js/stream_worker.js
@@ -252,6 +252,8 @@ class pipeline {
252
output: (chunk, cfg) => {
253
if (cfg.decoderConfig) {
254
cfg.decoderConfig.hardwareAcceleration = config.decHwAcceleration;
255
+ cfg.decoderConfig.optimizeForLatency = true;
256
+ if (config.latencyPref == 'quality') cfg.decoderConfig.optimizeForLatency = false;
257
const decoderConfig = JSON.stringify(cfg.decoderConfig);
258
self.postMessage({text: 'Configuration: ' + decoderConfig});
259
const configChunk =
0 commit comments