C# Class SIPSorcery.SoftPhone.MediaManager

Mostra file Open project: sipsorcery/sipsorcery Class Usage Examples

Public Methods

Method Description
Close ( ) : void

Called when the media channels are no longer required, such as when the VoIP call using it has terminated, and all resources can be shutdown and closed.

EncodedVideoSampleReceived ( byte sample, int length ) : void
EndCall ( ) : void
GetSDP ( bool usePublicIP ) : SDP
GetVideoDevices ( ) : List
MediaManager ( ) : System
NewCall ( ) : void
RemoteAudioSampleReceived ( byte sample, int length ) : void
RunLoopbackTest ( ) : void

This method gets the media manager to pass local media samples to the RTP channel and then receive them back as the remote video stream. This tests that the codec and RTP packetisation are working.

SetRemoteSDP ( SDP remoteSDP ) : void
StartLocalVideo ( VideoMode videoMode ) : void
StopLocalVideo ( ) : void

Private Methods

Method Description
AudioChannelSampleReady ( byte sample ) : void

Event handler for processing audio samples from the audio channel.

LocalVideoEncodedSampleReady ( byte sample ) : void

Method Details

Close() public method

Called when the media channels are no longer required, such as when the VoIP call using it has terminated, and all resources can be shutdown and closed.
public Close ( ) : void
return void

EncodedVideoSampleReceived() public method

public EncodedVideoSampleReceived ( byte sample, int length ) : void
sample byte
length int
return void

EndCall() public method

public EndCall ( ) : void
return void

GetSDP() public method

public GetSDP ( bool usePublicIP ) : SDP
usePublicIP bool
return SIPSorcery.Net.SDP

GetVideoDevices() public method

public GetVideoDevices ( ) : List
return List

MediaManager() public method

public MediaManager ( ) : System
return System

NewCall() public method

public NewCall ( ) : void
return void

RemoteAudioSampleReceived() public method

public RemoteAudioSampleReceived ( byte sample, int length ) : void
sample byte
length int
return void

RunLoopbackTest() public method

This method gets the media manager to pass local media samples to the RTP channel and then receive them back as the remote video stream. This tests that the codec and RTP packetisation are working.
public RunLoopbackTest ( ) : void
return void

SetRemoteSDP() public method

public SetRemoteSDP ( SDP remoteSDP ) : void
remoteSDP SIPSorcery.Net.SDP
return void

StartLocalVideo() public method

public StartLocalVideo ( VideoMode videoMode ) : void
videoMode VideoMode
return void

StopLocalVideo() public method

public StopLocalVideo ( ) : void
return void