Member Junction
    Preparing search index...

    The Codec object on a live Softphone (softphone.codec) — the fields the RTP loop reads.

    interface SoftphoneCodec {
        id: number;
        name: "OPUS/16000" | "OPUS/48000/2" | "PCMU/8000";
        packetSize: number;
        timestampInterval: number;
    }
    Index

    Properties

    id: number

    RTP payload type id (OPUS/16000 → 109).

    name: "OPUS/16000" | "OPUS/48000/2" | "PCMU/8000"

    Codec name.

    packetSize: number

    PCM input bytes consumed per 20 ms frame (OPUS/16000 → 640 = 320 samples × 2).

    timestampInterval: number

    RTP timestamp increment per 20 ms frame (OPUS/16000 → 320).