pytox.ToxAV Class

PyTox wraps libtoxav API with the object pytox.ToxAV, all the toxav API methods are in this class.

class pytox.ToxAV

ToxAV object

answer(friend_number, audio_bit_rate, video_bit_rate)

Answer incomming call.

See also

call()

audio_send_frame(friend_number, pcm, sample_count, channels, sampling_rate)

Send an audio frame to a friend.Returns True on success.

audio_set_bit_rate(friend_number, audio_bit_rate)

Set the bit rate to be used in subsequent audio frames.Returns True on success.

call(friend_number, audio_bit_rate, video_bit_rate)

Call a friend with friend_number.Returns True on success.

call_control(friend_number, control)

Sends a call control command to a friend.Returns True on success.

get_tox()

Get the Tox object associated with this ToxAV instance.

group_send_audio(groupnumber, pcm, samples, channels, sample_rate)

Send audio to the group chat.Returns -1 on failure.

iterate()

Main loop for the session.

iteration_interval()

Returns the interval in milliseconds when the next toxav_iterate call shouldbe.

join_av_groupchat(friend_number, data)

Join a AV group (you need to have been invited first.)Returns -1 on failure.

video_send_frame(friend_number, width, height, y, u, v)

Send a video frame to a friend.Returns True on success.

video_set_bit_rate(friend_number, video_bit_rate)

Set the bit rate to be used in subsequent video frames.Returns True on success.