mediasfu-angular
Version:
mediasfu-angular - Angular 17/18/19 WebRTC SDK for video conferencing, webinars, broadcasts, live streaming, chat, recording, whiteboard, and AI agents. Prebuilt rooms and fully custom UIs.
46 lines (45 loc) • 1.58 kB
TypeScript
import type { AParamsType as SharedAParamsType } from 'mediasfu-shared';
import * as i0 from "@angular/core";
export type AParamsType = SharedAParamsType;
/**
* 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.
*
* @service
* @example
* ```typescript
* import { AParams } from './path/to/a-params.service';
*
* constructor(private aParamsService: AParams) {
* console.log(this.aParamsService.aParams);
* }
* ```
*
* @typedef AParamsType
* @property {RtpEncodingParameters[]} encodings - Array of RTP encoding parameters for audio.
* @property {ProducerCodecOptions} [codecOptions] - Optional codec options for the audio producer.
*
* @example
* const aParams: AParamsType = {
* encodings: [
* {
* rid: 'r0',
* maxBitrate: 64000, // Max bitrate for the audio stream (in bps)
* },
* ],
* codecOptions: {
* // Additional codec options can be defined here
* },
* };
*
* @remarks
* 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.
*
* @returns {AParamsType} The audio parameters for use in audio producer configuration.
*/
export declare class AParams {
aParams: AParamsType;
static ɵfac: i0.ɵɵFactoryDeclaration<AParams, never>;
static ɵprov: i0.ɵɵInjectableDeclaration<AParams>;
}