mirror of
https://github.com/chatmail/core.git
synced 2026-04-28 10:56:29 +03:00
api(jsonrpc): add has_video attribute to call info
This commit is contained in:
@@ -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")?;
|
||||
|
||||
Reference in New Issue
Block a user