Edit

Share via


Recorder.StateChanged Event

Definition

Raised to notify an application that the recorder's state has changed.

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

Event Type

Examples

The following example show how to subscribe to StateChanged event.

C# Subscribing to StateChanged event.


recorder.StateChanged += delegate(object sender, RecorderStateChangedEventArgs args)
{
    RecorderState previousState = args.PreviousState;
    RecorderState currentState = args.State;

    // Do whatever it needs with recorder.
};



Remarks

This event is raised for every state change that occurs on the recorder, including when the application causes the state change.

Applies to