/// <summary>
 /// Callback from the Media Foundation pipeline when a new video frame is needed.
 /// </summary>
 /// <param name="sender">The stream source requesting a new sample.</param>
 /// <param name="args">The sample request to fullfil.</param>
 private void OnMediaStreamSourceRequested(MediaStreamSource sender, MediaStreamSourceSampleRequestedEventArgs args)
 {
     _videoBridge.TryServeVideoFrame(args);
 }