Recorder.StateChanged Event
Raised to notify an application that the recorder's state has changed.
Namespace: Microsoft.Rtc.Collaboration.AudioVideo
Assembly: Microsoft.Rtc.Collaboration (in Microsoft.Rtc.Collaboration.dll)
Syntax
'Declaration
Public Event StateChanged As EventHandler(Of RecorderStateChangedEventArgs)
'Usage
Dim instance As Recorder
Dim handler As EventHandler(Of RecorderStateChangedEventArgs)
AddHandler instance.StateChanged, handler
public event EventHandler<RecorderStateChangedEventArgs> StateChanged
Remarks
This event is raised for every state change that occurs on the recorder, including when the application causes the state change.
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.
};