Skip to main content

split_sdp

Function split_sdp 

Source
pub fn split_sdp(sdp: &str, id: &str, budget: usize) -> Option<Vec<SdpChunk>>
Expand description

Split sdp into chunks of at most budget bytes each, sharing id.

Returns None when sdp already fits within budget, so the caller sends it as a plain unchunked offer/answer rather than a chunk of one.