src/Foundation/Media/Gimela.Media.Video.DirectShow/VideoCaptureDeviceVideoSource.cs
/// <summary>
/// Notifies clients about new snapshot frame.
/// </summary>
/// <param name="image">New snapshot's image.</param>
/// <param name="timestamp">The timestamp.</param>
Notifies clients about new snapshot frame.
Notifies clients about new snapshot frame .
private void OnSnapshotFrame(Bitmap image, DateTime timestamp)
    {
      TimeSpan timeSinceStarted = DateTime.Now - startTime;
      if (timeSinceStarted.TotalSeconds >= 4)
      {
        if ((!stopEvent.WaitOne(0, false)) && (SnapshotFrame != null))
          SnapshotFrame(this, new NewFrameEventArgs(image, timestamp));
      }
    }
private void OnSnapshotFrame ( Bitmap image , DateTime timestamp ) { TimeSpan timeSinceStarted = DateTime . Now - startTime ; if ( timeSinceStarted . TotalSeconds >= 4 ) { if ( ( ! stopEvent . WaitOne ( 0 , false ) ) && ( SnapshotFrame != null ) ) SnapshotFrame ( this , new NewFrameEventArgs ( image , timestamp ) ) ; } }
Notifies clients about new snapshot frame.
Notifies clients about new snapshot frame .
// TODO: need to find better way to ignore the first snapshot, which is sent // automatically (or better disable it)
image
Bitmap
New snapshot's image.
New snapshot ' s image .
timestamp
DateTime
None