Can send audio data to the attached IPhoneCall object.
| C# | Visual Basic | Visual C++ |
public class PhoneCallAudioSender : TimerBasedMediaHandler, IPhoneCallListener, IPhoneCallAttachable
Public Class PhoneCallAudioSender _ Inherits TimerBasedMediaHandler _ Implements IPhoneCallListener, IPhoneCallAttachable
public ref class PhoneCallAudioSender : public TimerBasedMediaHandler, IPhoneCallListener, IPhoneCallAttachable
| All Members | Constructors | Methods | Properties | Events | |
| Icon | Member | Description |
|---|---|---|
| PhoneCallAudioSender()()()() |
Initializes a new instance of the PhoneCallAudioSender class.
| |
| PhoneCallAudioSender(IVoIPMediaFormatSelector) |
Initializes a new instance of the PhoneCallAudioSender class.
| |
| AttachToCall(ICall) |
Attaches the object to a call and so it can send media data to the call.
If the PhoneCallAudioSender is already attached to a call, it will be detached from it first.
| |
| CallErrorOccured(Object, VoIPEventArgs<(Of <<'(CallError>)>>)) |
This will be called whenever an error occures in the call.
| |
| CallStateChanged(Object, VoIPEventArgs<(Of <<'(CallState>)>>)) |
This will be called whenever the call changes its state.
| |
| DataReceived(Object, VoIPEventArgs<(Of <<'(AudioData>)>>)) | (Overrides TimerBasedMediaHandler.DataReceived(Object, VoIPEventArgs<(Of <<'(AudioData>)>>)).) | |
| DataSent |
Event that occurs when the data is ready to send.
(Inherited from AudioHandler.) | |
| Detach()()()() |
Detaches the object from the currently active call.
| |
| Dispose(Boolean) |
Disposes the object.
(Overrides TimerBasedMediaHandler.Dispose(Boolean).) | |
| Dispose()()()() |
Disposes the object.
(Inherited from VoIPMediaHandler.) | |
| DtmfReceived(Object, VoIPEventArgs<(Of <<'(DtmfInfo>)>>)) |
This will be called when the DTMF signalling stopped.
| |
| DtmfStarted(Object, VoIPEventArgs<(Of <<'(DtmfInfo>)>>)) |
This will be called when the DTMF signalling started.
| |
| Finalize()()()() | (Inherited from VoIPMediaHandler.) | |
| MediaDataReceived(Object, VoIPEventArgs<(Of <<'(VoIPMediaData>)>>)) |
This will be called when media data received from the call.
| |
| MediaDescriptionChanged(Object, VoIPEventArgs<(Of <<'(IEnumerable<(Of <<'(CallMediaFormatInfo>)>>)>)>>)) |
This will be called whenever the call changes its media description.
| |
| MediaFormat |
Gets the MediaFormat of the media handler.
(Inherited from AudioHandler.) | |
| MediaFormatChanged |
Occurs when the MediaFormat of the media handler has changed.
(Inherited from AudioHandler.) | |
| NoMediaFormatSelected |
Occurs when the [!:PhoneCallMediaSender] could not select the proper MediaFormat.
It means the [!:PhoneCallMediaSender] will not send any media data to the attached call.
| |
| PacketizationTime |
Gets the time between the send events (in milliseconds).
(Inherited from TimerBasedMediaHandler.) | |
| PlainMediaDataReceived(Object, VoIPEventArgs<(Of <<'(EncodedMediaData>)>>)) |
This will be called when some encoded media data received from the call.
| |
| SendData(AudioData) |
Sends media data to the connected media handlers.
(Inherited from AudioHandler.) | |
| SendDataToCall(VoIPMediaData) |
Sends media data with the given media format to the attached call.
| |
| SetPacketizationTime(Int32) |
Sets the time between tick events.
(Inherited from TimerBasedMediaHandler.) | |
| StartTimer()()()() |
Starts the timer.
(Inherited from TimerBasedMediaHandler.) | |
| StopTimer()()()() |
Stops the timer.
(Inherited from TimerBasedMediaHandler.) | |
| TimerTick(Object, EventArgs) | (Overrides TimerBasedMediaHandler.TimerTick(Object, EventArgs).) | |
| UpdateMediaFormat(IEnumerable<(Of <<'(CallMediaFormatInfo>)>>)) |
Retreives all available media formats from the call and updates the MediaFormat of the object.
|
Inherited from the AudioHandler class, so it can be connected to other AudioHandler objects.
The class implements the IPhoneCallAttachable interface so it can be attached to a IPhoneCall object.
When a PhoneCallAudioSender is attached to an IPhoneCall object, it will send the available audio data to the attached call.
When a connected AudioHandler sends audio data to the PhoneCallAudioSender, it will send it directly to the call,
but it will not send it to the connected AudioHandler objects.
| Object | ||||
| VoIPMediaHandler | ||||
| AudioHandler | ||||
| TimerBasedMediaHandler | ||||
| PhoneCallAudioSender | ||||