View Source ExWebRTC.RTP.OpusPayloader (ex_webrtc v0.1.0)

Encapsulates Opus audio packet into an RTP packet.

Based on RFC 7587: RTP Payload Format for the Opus Speech and Audio Codec.

Summary

Functions

Packs Opus packet into an RTP packet.

Functions

@spec payload(binary()) :: ExRTP.Packet.t()

Packs Opus packet into an RTP packet.

Fields from RTP header like ssrc, timestamp etc. are set to 0.