Property | Type | Description | |
---|---|---|---|
SupportedAudioTypes | List |
Method | Description | |
---|---|---|
AudioChannel ( ) : System | ||
AudioSampleReceived ( byte sample, int offset ) : void |
Event handler for receiving an RTP packet containing and audio payload from the remote end of the VoIP call.
|
|
Close ( ) : void |
Called when the audo channel is no longer required, such as when the VoIP call using it has terminated, and all resources can be shutdown and closed.
|
|
GetMediaAnnouncement ( ) : |
Gets the media announcement to include in the SDP payload for a call.
|
|
GetSDP ( bool usePublicIP ) : |
Gets an SDP packet that can be used by VoIP clients to negotiate an audio connection. The SDP will only offer PCMU since that's all I've gotten around to handling.
|
|
SetRemoteRTPEndPoint ( |
Allows an arbitrary block of bytes to be sent on the RTP channel. This is mainly used for the Gingle client which needs to send a STUN binding request to the Google Voice gateway. Sets the remote end point for the RTP channel. This will be set from the SDP packet received from the remote end of the VoIP call.
|
|
StartRecording ( ) : void |
Method | Description | |
---|---|---|
AudioSampleAvailable ( object sender, NAudio.Wave.WaveInEventArgs e ) : void |
Event handler for receiving an audio sample that is ready for encoding, packaging into RTP and sending to the remote end of the VoIP call.
|
|
RTPChannelSampleAvailable ( object sender, NAudio.Wave.WaveInEventArgs e ) : void |
Event handler for receiving an audio sample that is ready for encoding, packaging into RTP and sending to the remote end of the VoIP call.
|
|
RTPChannelSampleReceived ( |
Event handler for receiving an RTP frmae from the remote end of the VoIP call.
|
public AudioSampleReceived ( byte sample, int offset ) : void | ||
sample | byte | The audio sample. |
offset | int | The offset in the sample that the audio starts. |
return | void |
public GetMediaAnnouncement ( ) : |
||
return |
public GetSDP ( bool usePublicIP ) : |
||
usePublicIP | bool | If true and the public IP address is available from the STUN client then /// the public IP address will be used in the SDP otherwise the hsot machine's default IPv4 address will /// be used. |
return |
public SetRemoteRTPEndPoint ( |
||
remoteEndPoint | The remote end point to send RTP to. | |
return | void |