pub fn modify_sdp_direction(sdp: &str, direction: &str) -> StringExpand description
Rewrite every direction attribute (sendrecv, sendonly, recvonly, inactive)
inside every media section of a raw SDP string to the given direction.
Non-direction lines are preserved verbatim. Output uses \r\n line endings to
comply with RFC 4566.