AudioVideoFlow.Initialize(AudioVideoFlowTemplate) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Copies the properties from the template to the AudioVideoFlow instance.
public:
void Initialize(Microsoft::Rtc::Collaboration::AudioVideo::AudioVideoFlowTemplate ^ template);
public void Initialize (Microsoft.Rtc.Collaboration.AudioVideo.AudioVideoFlowTemplate template);
member this.Initialize : Microsoft.Rtc.Collaboration.AudioVideo.AudioVideoFlowTemplate -> unit
Public Sub Initialize (template As AudioVideoFlowTemplate)
Parameters
- template
- AudioVideoFlowTemplate
The template to use.
Exceptions
Thrown when the method is not called within the context of the AudioVideoCall FlowCreated event, or when the AudioVideoFlow is not in the Idle state.
Thrown when the template argument is null.
Examples
The following example initializes and AudioVideoFlow turning tone support off.
C# Initializing an AudioVideoFlow.
audioVideoCall.AudioVideoFlowConfigurationRequested += delegate(object sender, AudioVideoFlowConfigurationRequestedEventArgs args)
{
AudioVideoFlow avFlow = (AudioVideoFlow)sender;
AudioVideoFlowTemplate template = new AudioVideoFlowTemplate(avFlow);
template.TonePolicy = TonePolicy.NotSupported;
avFlow.Initialize(template);
};