C# 클래스 SharpTox.Av.ToxAv

Represents an instance of toxav.
상속: IDisposable
파일 보기 프로젝트 열기: hexafluoride/Detox 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
DefaultCodecSettings SharpTox.Av.ToxAvCodecSettings

공개 메소드들

메소드 설명
AddAvGroupchat ( ) : int

Creates a new audio groupchat.

Answer ( int callIndex, SharpTox.Av.ToxAvCodecSettings settings ) : ToxAvError

Answers a call.

Call ( int friendNumber, SharpTox.Av.ToxAvCodecSettings settings, int ringingSeconds, int &callIndex ) : ToxAvError

Creates a new call.

Cancel ( int callIndex, int friendNumber, string reason ) : ToxAvError

Cancels a call.

CapabilitySupported ( int callIndex, ToxAvCapabilities capability ) : bool

Checks whether a certain capability is supported.

ChangeSettings ( int callIndex, SharpTox.Av.ToxAvCodecSettings settings ) : ToxAvError

Changes the type of an in-progress call

Dispose ( ) : void

Releases all resources used by this instance of tox.

GetCallState ( int callIndex ) : ToxAvCallState

Retrieves the state of a call.

GetPeerCodecSettings ( int callIndex, int peer ) : SharpTox.Av.ToxAvCodecSettings

Retrieves a peer's codec settings.

GetPeerID ( int callIndex, int peer ) : int

Get the friend_number of peer participating in conversation

GroupSendAudio ( int groupNumber, short pcm, int perframe, int channels, int sampleRate ) : bool

Sends an audio frame to a group.

Hangup ( int callIndex ) : ToxAvError

Hangs up an in-progress call.

Iterate ( ) : int

Runs the loop once in the current thread and returns the next timeout.

JoinAvGroupchat ( int friendNumber, byte data ) : int

Joins an audio groupchat.

KillTransmission ( int callIndex ) : ToxAvError

Kills the transmission of a call. Should be called at the end of the transmission.

PrepareAudioFrame ( int callIndex, byte dest, int destMax, short frames, int perframe ) : int

Encodes an audio frame.

PrepareTransmission ( int callIndex, bool supportVideo ) : ToxAvError

Prepares transmission. Must be called before any transmission occurs.

PrepareVideoFrame ( int callIndex, byte dest, IntPtr img ) : int
Reject ( int callIndex, string reason ) : ToxAvError

Rejects an incoming call.

SendAudio ( int callIndex, byte frame, int frameSize ) : ToxAvError

Sends an encoded audio frame.

SendVideo ( int callIndex, byte frame ) : ToxAvError
Start ( ) : void

Starts the main toxav_do loop.

Stop ( ) : void

Stops the main toxav_do loop if it's running.

StopCall ( int callIndex ) : ToxAvError

Stops a call and terminates the transmission without notifying the remote peer.

ToxAv ( Tox tox, int maxCalls ) : System

Initialises a new instance of toxav.

ToxAv ( ToxHandle tox, int maxCalls ) : System

Initialises a new instance of toxav.

비공개 메소드들

메소드 설명
ClearEventSubscriptions ( ) : void
Dispose ( bool disposing ) : void
DoIterate ( ) : int
Kill ( ) : void
Loop ( ) : void
ThrowIfDisposed ( ) : void

메소드 상세

AddAvGroupchat() 공개 메소드

Creates a new audio groupchat.
public AddAvGroupchat ( ) : int
리턴 int

Answer() 공개 메소드

Answers a call.
public Answer ( int callIndex, SharpTox.Av.ToxAvCodecSettings settings ) : ToxAvError
callIndex int
settings SharpTox.Av.ToxAvCodecSettings
리턴 ToxAvError

Call() 공개 메소드

Creates a new call.
public Call ( int friendNumber, SharpTox.Av.ToxAvCodecSettings settings, int ringingSeconds, int &callIndex ) : ToxAvError
friendNumber int
settings SharpTox.Av.ToxAvCodecSettings
ringingSeconds int
callIndex int
리턴 ToxAvError

Cancel() 공개 메소드

Cancels a call.
public Cancel ( int callIndex, int friendNumber, string reason ) : ToxAvError
callIndex int
friendNumber int
reason string
리턴 ToxAvError

CapabilitySupported() 공개 메소드

Checks whether a certain capability is supported.
public CapabilitySupported ( int callIndex, ToxAvCapabilities capability ) : bool
callIndex int
capability ToxAvCapabilities
리턴 bool

ChangeSettings() 공개 메소드

Changes the type of an in-progress call
public ChangeSettings ( int callIndex, SharpTox.Av.ToxAvCodecSettings settings ) : ToxAvError
callIndex int
settings SharpTox.Av.ToxAvCodecSettings
리턴 ToxAvError

Dispose() 공개 메소드

Releases all resources used by this instance of tox.
public Dispose ( ) : void
리턴 void

GetCallState() 공개 메소드

Retrieves the state of a call.
public GetCallState ( int callIndex ) : ToxAvCallState
callIndex int
리턴 ToxAvCallState

GetPeerCodecSettings() 공개 메소드

Retrieves a peer's codec settings.
public GetPeerCodecSettings ( int callIndex, int peer ) : SharpTox.Av.ToxAvCodecSettings
callIndex int
peer int
리턴 SharpTox.Av.ToxAvCodecSettings

GetPeerID() 공개 메소드

Get the friend_number of peer participating in conversation
public GetPeerID ( int callIndex, int peer ) : int
callIndex int
peer int
리턴 int

GroupSendAudio() 공개 메소드

Sends an audio frame to a group.
public GroupSendAudio ( int groupNumber, short pcm, int perframe, int channels, int sampleRate ) : bool
groupNumber int
pcm short
perframe int
channels int
sampleRate int
리턴 bool

Hangup() 공개 메소드

Hangs up an in-progress call.
public Hangup ( int callIndex ) : ToxAvError
callIndex int
리턴 ToxAvError

Iterate() 공개 메소드

Runs the loop once in the current thread and returns the next timeout.
public Iterate ( ) : int
리턴 int

JoinAvGroupchat() 공개 메소드

Joins an audio groupchat.
public JoinAvGroupchat ( int friendNumber, byte data ) : int
friendNumber int
data byte
리턴 int

KillTransmission() 공개 메소드

Kills the transmission of a call. Should be called at the end of the transmission.
public KillTransmission ( int callIndex ) : ToxAvError
callIndex int
리턴 ToxAvError

PrepareAudioFrame() 공개 메소드

Encodes an audio frame.
public PrepareAudioFrame ( int callIndex, byte dest, int destMax, short frames, int perframe ) : int
callIndex int
dest byte
destMax int
frames short
perframe int
리턴 int

PrepareTransmission() 공개 메소드

Prepares transmission. Must be called before any transmission occurs.
public PrepareTransmission ( int callIndex, bool supportVideo ) : ToxAvError
callIndex int
supportVideo bool
리턴 ToxAvError

PrepareVideoFrame() 공개 메소드

public PrepareVideoFrame ( int callIndex, byte dest, IntPtr img ) : int
callIndex int
dest byte
img System.IntPtr
리턴 int

Reject() 공개 메소드

Rejects an incoming call.
public Reject ( int callIndex, string reason ) : ToxAvError
callIndex int
reason string
리턴 ToxAvError

SendAudio() 공개 메소드

Sends an encoded audio frame.
public SendAudio ( int callIndex, byte frame, int frameSize ) : ToxAvError
callIndex int
frame byte
frameSize int
리턴 ToxAvError

SendVideo() 공개 메소드

public SendVideo ( int callIndex, byte frame ) : ToxAvError
callIndex int
frame byte
리턴 ToxAvError

Start() 공개 메소드

Starts the main toxav_do loop.
public Start ( ) : void
리턴 void

Stop() 공개 메소드

Stops the main toxav_do loop if it's running.
public Stop ( ) : void
리턴 void

StopCall() 공개 메소드

Stops a call and terminates the transmission without notifying the remote peer.
public StopCall ( int callIndex ) : ToxAvError
callIndex int
리턴 ToxAvError

ToxAv() 공개 메소드

Initialises a new instance of toxav.
public ToxAv ( Tox tox, int maxCalls ) : System
tox SharpTox.Core.Tox
maxCalls int
리턴 System

ToxAv() 공개 메소드

Initialises a new instance of toxav.
public ToxAv ( ToxHandle tox, int maxCalls ) : System
tox SharpTox.Core.ToxHandle
maxCalls int
리턴 System

프로퍼티 상세

DefaultCodecSettings 공개적으로 정적으로 프로퍼티

The default codec settings.
public static ToxAvCodecSettings,SharpTox.Av DefaultCodecSettings
리턴 SharpTox.Av.ToxAvCodecSettings