Skip to content

Specify static PayloadType

Compare
Choose a tag to compare
@shinyoshiaki shinyoshiaki released this 21 May 10:00
· 774 commits to develop since this release
          const pc = new RTCPeerConnection({
            codecs: {
              audio: [
                new RTCRtpCodecParameters({
                  mimeType: "PCMU",
                  clockRate: 8000,
                  channels: 1,
                  payloadType: 0
                }),
              ],
            },
          });