Struct tox::av::Av
[-]
[+]
[src]
pub struct Av { pub events: Receiver<Event>, // some fields omitted }
Fields
events |
Methods
impl Av
fn new(tox: *mut Tox, max_calls: i32, send_end: SyncSender<()>) -> Option<Av>
fn call(&self, friend_id: i32, settings: Option<Box<CallSettings>>, timeout: i32) -> Result<i32, i32>
fn hangup(&self, call_id: i32) -> Result<(), i32>
fn answer(&self, call_id: i32, settings: Option<Box<CallSettings>>) -> Result<(), i32>
fn reject(&self, call_id: i32) -> Result<(), i32>
fn cancel(&self, call_id: i32, peer_id: i32) -> Result<(), i32>
fn change_settings(&self, call_id: i32, settings: Option<Box<CallSettings>>) -> Result<(), i32>
fn stop_call(&self, call_id: i32) -> Result<(), i32>
fn prepare_transmission(&self, call_id: i32, support_video: bool) -> Result<(), i32>
fn kill_transmission(&self, call_id: i32) -> Result<(), i32>
fn prepare_audio_frame(&self, call_id: i32, dest: Vec<u8>, src: Vec<i16>) -> Result<(Vec<u8>, Vec<i16>), (i32, Vec<u8>, Vec<i16>)>
fn send_audio(&self, call_id: i32, src: Vec<u8>) -> Result<Vec<u8>, (i32, Vec<u8>)>
fn get_peer_call_settings(&self, call_id: i32, peer_id: i32) -> Result<Box<CallSettings>, i32>
fn get_peer_id(&self, call_id: i32, peer_id: i32) -> Result<i32, i32>
fn get_call_state(&self, call_id: i32) -> CallState
fn capability_supported(&self, call_id: i32, capability: Capability) -> Result<bool, i32>
fn get_active_count(&self) -> Result<uint, i32>
fn add_av_groupchat(&self) -> Result<i32, i32>
fn join_av_groupchat(&self, friend_id: i32, data: Vec<u8>) -> Result<i32, i32>
fn group_send_audio(&self, group_id: i32, bit: AudioBit) -> Result<AudioBit, (i32, AudioBit)>
fn events(&self) -> &Receiver<Event>
Return an events receiver