api(jsonrpc): add has_video attribute to call info

This commit is contained in:
link2xt
2025-09-27 17:15:06 +00:00
committed by l
parent 1ba448fe19
commit e968000a89
3 changed files with 15 additions and 3 deletions

View File

@@ -432,7 +432,7 @@ impl Context {
}
/// Returns true if SDP offer has a video.
fn sdp_has_video(sdp: &str) -> Result<bool> {
pub fn sdp_has_video(sdp: &str) -> Result<bool> {
let mut cursor = Cursor::new(sdp);
let session_description =
SessionDescription::unmarshal(&mut cursor).context("Failed to parse SDP")?;