Skip to content

Commit

Permalink
Merge pull request #549 from aboba/main
Browse files Browse the repository at this point in the history
Set optimizeForLatency in decoder configuration
  • Loading branch information
jan-ivar authored Oct 10, 2023
2 parents bfe8591 + 56e06c2 commit e841e0b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions samples/webcodecs-echo/js/stream_worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -719,6 +719,7 @@ SSRC = this.config.ssrc
if (cfg.decoderConfig) {
// self.postMessage({text: 'Decoder reconfig!'});
cfg.decoderConfig.hardwareAcceleration = config.decHwAcceleration;
cfg.decoderConfig.optimizeForLatency = (config.latencyMode == "realtime");
const decoderConfig = JSON.stringify(cfg.decoderConfig);
// self.postMessage({text: 'Decoder configuration: ' + decoderConfig});
const configChunk =
Expand Down

0 comments on commit e841e0b

Please sign in to comment.