Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

SpeechRecognitionConnector.DetachFlow Method

Detachs the current AudioVideoFlow, freeing the connector to use another.

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

public void DetachFlow()

Will NO-OP if no flow is attached.

The following example attaches and detaches a SpeechRecognizerConnector by the time AudioVideoFlow changes its state to Active and Terminated.

C# Attaching and detaching an AudioVideoFlow.


            audioVideoFlow.StateChanged += delegate(object sender, MediaFlowStateChangedEventArgs args)
                AudioVideoFlow avFlow = (AudioVideoFlow)sender;

                if(avFlow.State == MediaFlowState.Active)

                    SpeechRecognitionConnector speechRecognitionConnector = new SpeechRecognitionConnector();

                else if(avFlow.State == MediaFlowState.Terminated)

                    if (avFlow.SpeechRecognitionConnector != null)


© 2015 Microsoft