Export (0) Print
Expand All

ToneController.ToneReceived Event

Raised when a ToneController receives a tone.

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

public event EventHandler<ToneControllerEventArgs> ToneReceived

Tones will be received only when all three of the following conditions are true: An active AudioVideoFlow is attached.AudioVideoFlow.ToneEnabled is equal to true.AudioVideoFlow.HoldType is None or RemoteEndpointAllowTones.

The following example shows how to subscribe to the ToneReceived event.

C# Subscribing to ToneReceived event.

 

            toneController.ToneReceived += delegate(object sender, ToneControllerEventArgs args)
            {
                ToneId tone = (ToneId)args.Tone;
                float volume = args.Volume;

                // Do whatever it needs.
            };




Show:
© 2014 Microsoft