Example #1
0
 /// <summary>
 /// Updates or restores the audio playback of the playing audio input device.
 /// </summary>
 public int Update()
 {
     if (_base._micMode)
     {
         _base._lastError = Player.NO_ERROR;
         _base.AV_UpdateTopology();
     }
     else
     {
         _base._lastError = HResult.MF_E_VIDEO_RECORDING_DEVICE_INVALIDATED;
     }
     return((int)_base._lastError);
 }
Example #2
0
 /// <summary>
 /// Updates or restores the audio and video playback of the playing webcam.
 /// </summary>
 public int Update()
 {
     if (_base._webcamMode)
     {
         _base.AV_UpdateTopology();
         if (_base._hasOverlay)
         {
             _base.AV_ShowOverlay();
         }
         _base._lastError = Player.NO_ERROR;
     }
     else
     {
         _base._lastError = HResult.MF_E_VIDEO_RECORDING_DEVICE_INVALIDATED;
     }
     return((int)_base._lastError);
 }
Example #3
0
 /// <summary>
 /// Updates the video image on the player's display window. For special use only, generally not required.
 /// </summary>
 public int Update()
 {
     _base._lastError = Player.NO_ERROR;
     if (_base._webcamMode)
     {
         _base.AV_UpdateTopology();
         if (_base._hasOverlay)
         {
             _base.AV_ShowOverlay();
         }
     }
     else if (_base.mf_VideoDisplayControl != null)
     {
         _base.mf_VideoDisplayControl.RepaintVideo();
     }
     else
     {
         _base._lastError = HResult.MF_E_NOT_AVAILABLE;
     }
     return((int)_base._lastError);
 }