/// <summary>
 /// Handles the MediaClosed event of the Media control
 /// </summary>
 /// <param name="sender">The sender</param>
 /// <param name="e">The <see cref="RoutedEventArgs"/> instance containing the event data.</param>
 private void OnMediaClosed(object sender, RoutedEventArgs e)
 {
     // Always close the recorder so that the file trailer is written.
     lock (RecorderSyncLock)
     {
         StreamRecorder?.Close();
         StreamRecorder = null;
     }
 }
示例#2
0
        /// <summary>
        /// Handles the MediaClosed event of the Media control.
        /// </summary>
        /// <param name="sender">The sender.</param>
        /// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param>
        private void OnMediaClosed(object sender, EventArgs e)
        {
            // Always close the recorder so that the file trailer is written.
            lock (RecorderSyncLock)
            {
                StreamRecorder?.Close();
                StreamRecorder = null;
            }

            ViewModel.NotificationMessage = "Media closed.";
        }