MCPcopy Create free account
hub / github.com/HackWebRTC/webrtc / GetCodecsForAnswer

Method GetCodecsForAnswer

pc/media_session.cc:1856–1925  ·  view source on GitHub ↗

Getting codecs for an answer involves these steps: 1. Construct payload type -> codec mappings for current description. 2. Add any codecs from the offer that weren't already present. 3. Add any remaining codecs that weren't already present. 4. For each individual media description (m= section), filter codecs based on the directional attribute (happens in another method).

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 6

media_descriptionMethod · 0.80
IsMediaContentOfTypeFunction · 0.70
as_audioMethod · 0.45
as_videoMethod · 0.45
as_rtp_dataMethod · 0.45

Tested by

no test coverage detected