[longomatch] Addapt GstCameraCapturer and CaptrurerBin to new ICapturer interface
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [longomatch] Addapt GstCameraCapturer and CaptrurerBin to new ICapturer interface
- Date: Thu, 25 Mar 2010 20:45:38 +0000 (UTC)
commit 2d42a14cc38b026c12b206adc406dbc9a43ae3a1
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date: Wed Feb 17 21:21:12 2010 +0100
Addapt GstCameraCapturer and CaptrurerBin to new ICapturer interface
CesarPlayer/Capturer/GstCameraCapturer.cs | 13 +++++++++++--
CesarPlayer/Gui/CapturerBin.cs | 21 +++++++++------------
2 files changed, 20 insertions(+), 14 deletions(-)
---
diff --git a/CesarPlayer/Capturer/GstCameraCapturer.cs b/CesarPlayer/Capturer/GstCameraCapturer.cs
index a8d4f5e..ca2b31d 100644
--- a/CesarPlayer/Capturer/GstCameraCapturer.cs
+++ b/CesarPlayer/Capturer/GstCameraCapturer.cs
@@ -299,6 +299,15 @@ namespace LongoMatch.Video.Capturer {
bool ret = raw_ret;
return ret;
}
+
+ [DllImport("libcesarplayer.dll")]
+ static extern int gst_camera_capturer_get_current_time(IntPtr raw);
+
+ public int CurrentTime{
+ get{
+ return gst_camera_capturer_get_current_time(Handle);
+ }
+ }
[DllImport("libcesarplayer.dll")]
static extern IntPtr gst_camera_capturer_get_type();
@@ -310,8 +319,8 @@ namespace LongoMatch.Video.Capturer {
return ret;
}
}
-
-
+
+
static GstCameraCapturer ()
{
LongoMatch.GtkSharp.Capturer.ObjectManager.Initialize ();
diff --git a/CesarPlayer/Gui/CapturerBin.cs b/CesarPlayer/Gui/CapturerBin.cs
index 76dd283..4f1e57a 100644
--- a/CesarPlayer/Gui/CapturerBin.cs
+++ b/CesarPlayer/Gui/CapturerBin.cs
@@ -45,19 +45,22 @@ namespace LongoMatch.Gui
public string OutputFile {
set{
this.capturer.OutputFile= value;
- }
-
- }
-
+ }
+ }
public uint VideoBitrate {
- set{this.capturer.VideoBitrate=value;}
+ set{this.capturer.VideoBitrate=value;}
}
public uint AudioBitrate {
set{this.capturer.AudioBitrate=value;}
}
+ public int CurrentTime {
+ get{
+ return capturer.CurrentTime;
+ }
+ }
public void TogglePause(){
this.capturer.TogglePause();
}
@@ -70,10 +73,6 @@ namespace LongoMatch.Gui
this.capturer.Stop();
}
- public void Run(){
- this.capturer.Run();
- }
-
public void SetVideoEncoder(LongoMatch.Video.Capturer.GccVideoEncoderType type){
this.capturer.SetVideoEncoder(type);
}
@@ -99,8 +98,6 @@ namespace LongoMatch.Gui
protected virtual void OnStopbuttonClicked (object sender, System.EventArgs e)
{
this.Stop();
- }
-
-
+ }
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]