Recorder.StateChanged Event
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.
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.