RtcEngine

Trait RtcEngine 

Source
pub trait RtcEngine: Send + Sync {
    // Required methods
    fn set_event_sender(
        &self,
        sender: UnboundedSender<RtcEvent>,
    ) -> Result<(), EnigmaRtcError>;
    fn create_offer(&self) -> Result<String, EnigmaRtcError>;
    fn create_answer(&self, offer_sdp: &str) -> Result<String, EnigmaRtcError>;
    fn apply_answer(&self, answer_sdp: &str) -> Result<(), EnigmaRtcError>;
    fn add_remote_candidate(
        &self,
        candidate_json: &str,
    ) -> Result<(), EnigmaRtcError>;
    fn set_microphone_enabled(
        &self,
        enabled: bool,
    ) -> Result<(), EnigmaRtcError>;
    fn set_camera_enabled(&self, enabled: bool) -> Result<(), EnigmaRtcError>;
}

Required Methods§

Implementors§