Edit

Share via


AudioVideoCall.AudioVideoFlowConfigurationRequested Event

Definition

Raised when AudioVideoFlow is created. Applications can use this event handler to register for flow related event handlers and optionally set flow configuration.

public:
 event EventHandler<Microsoft::Rtc::Collaboration::AudioVideo::AudioVideoFlowConfigurationRequestedEventArgs ^> ^ AudioVideoFlowConfigurationRequested;
public event EventHandler<Microsoft.Rtc.Collaboration.AudioVideo.AudioVideoFlowConfigurationRequestedEventArgs> AudioVideoFlowConfigurationRequested;
member this.AudioVideoFlowConfigurationRequested : EventHandler<Microsoft.Rtc.Collaboration.AudioVideo.AudioVideoFlowConfigurationRequestedEventArgs> 
Public Custom Event AudioVideoFlowConfigurationRequested As EventHandler(Of AudioVideoFlowConfigurationRequestedEventArgs) 

Event Type

Examples

The following example shows a basic implementation of a flow configuration requested handler:

C# FlowConfigurationRequested on AudioVideoCall

_avCall1.AudioVideoFlowConfigurationRequested +=
    this.FlowConfigurationRequested;

private void FlowConfigurationRequested(
    object sender,
    AudioVideoFlowConfigurationRequestedEventArgs e)
{
     AudioVideoFlowTemplate template = new AudioVideoFlowTemplate(e.Flow);
     template.TonePolicy = TonePolicy.NotSupported;

     // Register for State change notifications.
     e.Flow.StateChanged += this.FlowStateChanged;

     // Register for flow configuration changes.
     e.Flow.ConfigurationChanged += this.FlowConfigurationChanged;

     // Initialize the flow.
     e.Flow.Initialize(template);
}


Remarks

It is recommended that the application register an event handler for this event to apply specific configuration settings on the flow object. Applications which wish to configure the flow for the initial SDP negotiation must do so in the eventhandler

Applies to