Share via


AudioVideoCall.AudioVideoFlowConfigurationRequested Event

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

Namespace:  Microsoft.Rtc.Collaboration.AudioVideo
Assembly:  Microsoft.Rtc.Collaboration (in Microsoft.Rtc.Collaboration.dll)

Syntax

'Declaration
Public Event AudioVideoFlowConfigurationRequested As EventHandler(Of AudioVideoFlowConfigurationRequestedEventArgs)
'Usage
Dim instance As AudioVideoCall
Dim handler As EventHandler(Of AudioVideoFlowConfigurationRequestedEventArgs)

AddHandler instance.AudioVideoFlowConfigurationRequested, handler
public event EventHandler<AudioVideoFlowConfigurationRequestedEventArgs> AudioVideoFlowConfigurationRequested

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

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);
}

See Also

Reference

AudioVideoCall Class

AudioVideoCall Members

Microsoft.Rtc.Collaboration.AudioVideo Namespace

AudioVideoFlowTemplate