The AParams service provides the encoding parameters for audio production in a media session using the Mediasoup library. It includes a default configuration for RTP encoding parameters, which can be used when creating audio producers.

import { AParams } from './path/to/a-params.service';

constructor(private aParamsService: AParams) {
console.log(this.aParamsService.aParams);
}
const aParams: AParamsType = {
encodings: [
{
rid: 'r0',
maxBitrate: 64000, // Max bitrate for the audio stream (in bps)
},
],
codecOptions: {
// Additional codec options can be defined here
},
};

The default aParams contains a single encoding with a rid of "r0" and a maximum bitrate of 64 kbps. This configuration can be adjusted based on application requirements.

The audio parameters for use in audio producer configuration.

Constructors

Properties

Constructors

Properties

aParams: AParamsType = ...