aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.Video/CaptureDevice.cs
diff options
context:
space:
mode:
authorRoy Ben-Shabat <Roy@Twine-s.com>2018-03-22 16:21:16 +0200
committerRoy Ben-Shabat <Roy@Twine-s.com>2018-03-22 16:21:16 +0200
commit3de0d44f88b713e7b018f470c7bd318a775345b7 (patch)
tree7b5b2a1b50e4a9ab9e2f55269dd666133fd97e5e /Software/Visual_Studio/Tango.Video/CaptureDevice.cs
parente4498de8bf54d586d5af7d119b7c33ad4c0031b5 (diff)
downloadTango-3de0d44f88b713e7b018f470c7bd318a775345b7.tar.gz
Tango-3de0d44f88b713e7b018f470c7bd318a775345b7.zip
Implemented video recording on Data Capture Module!
Diffstat (limited to 'Software/Visual_Studio/Tango.Video/CaptureDevice.cs')
-rw-r--r--Software/Visual_Studio/Tango.Video/CaptureDevice.cs23
1 files changed, 23 insertions, 0 deletions
diff --git a/Software/Visual_Studio/Tango.Video/CaptureDevice.cs b/Software/Visual_Studio/Tango.Video/CaptureDevice.cs
index b39f14981..a8ff38da9 100644
--- a/Software/Visual_Studio/Tango.Video/CaptureDevice.cs
+++ b/Software/Visual_Studio/Tango.Video/CaptureDevice.cs
@@ -162,6 +162,17 @@ namespace Tango.Video.DirectCapture
#region Properties
+ private bool _emulatedMode;
+ /// <summary>
+ /// Gets or sets a value indicating whether [video available].
+ /// </summary>
+ public bool EmulatedMode
+ {
+ get { return _emulatedMode; }
+ set { _emulatedMode = value; RaisePropertyChanged(nameof(EmulatedMode)); }
+ }
+
+
/// <summary>
/// The name of the device to capture.
/// </summary>
@@ -533,6 +544,18 @@ namespace Tango.Video.DirectCapture
return b;
}
+ public void DisableSourceUpdate()
+ {
+ EmulatedMode = true;
+ this.Unbind(CaptureDevice.VideoSourceProperty);
+ }
+
+ public void EnableSourceUpdate()
+ {
+ EmulatedMode = false;
+ BindSourceToDirectShow();
+ }
+
#endregion
#region Private Methods