mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-12 11:26:39 +00:00
73ed037fa4
* gstreamer-sharp/BindingHelper.cs: Static helper class to assist in making element bindings (delegate manipulation/invocation) * gstreamer-sharp/DynamicSignal.cs: Updated DynamicSignalArgs so they can more easily be derived * gstreamer-sharp/Makefile.am: Updated build * sample/HelloWorld.cs: More cleaning * sample/Makefile.am: * sample/TypeFind.cs: Added typefind sample * gstreamer-sharp.mdp: Updated MonoDevelop project * gstreamer-sharp/plugins-base/DecodeBin.cs: Signal support rewritten to use BindingHelper/DynamicSignal * gstreamer-sharp/plugins-base/TypeFindElement.cs: New typefind element wrapper using BindingHelper/DynamicSignal * gstreamer-sharp/Element.custom: Fixed property getter/setter methods and added indexer wrapper for property lookup for syntax convenience git-svn-id: svn://anonsvn.mono-project.com/source/branches/abock/gstreamer-sharp@62570 e3ebcda4-bce8-0310-ba0a-eca2169e7518
66 lines
1.9 KiB
Text
66 lines
1.9 KiB
Text
|
|
public object this[string property] {
|
|
get { return GetProperty(property).Val; }
|
|
set { SetProperty(property, value); }
|
|
}
|
|
|
|
public new GLib.Value GetProperty(string propertyName)
|
|
{
|
|
return base.GetProperty(propertyName);
|
|
}
|
|
|
|
public new void SetProperty(string propertyName, GLib.Value value)
|
|
{
|
|
base.SetProperty(propertyName, value);
|
|
}
|
|
|
|
public void SetProperty(string propertyName, object value)
|
|
{
|
|
base.SetProperty(propertyName, new GLib.Value(value));
|
|
}
|
|
|
|
public void SetProperty(string propertyName, string value)
|
|
{
|
|
base.SetProperty(propertyName, new GLib.Value(value));
|
|
}
|
|
|
|
public void SetProperty(string propertyName, int value)
|
|
{
|
|
base.SetProperty(propertyName, new GLib.Value(value));
|
|
}
|
|
|
|
public void SetProperty(string propertyName, double value)
|
|
{
|
|
base.SetProperty(propertyName, new GLib.Value(value));
|
|
}
|
|
|
|
public void SetProperty(string propertyName, bool value)
|
|
{
|
|
base.SetProperty(propertyName, new GLib.Value(value));
|
|
}
|
|
|
|
[DllImport("gstreamer-0.10.dll")]
|
|
private static extern bool gst_element_query_position(IntPtr raw, ref Format format, out long cur);
|
|
|
|
public bool QueryPosition(Gst.Format format, out long current)
|
|
{
|
|
return gst_element_query_position(Handle, ref format, out current);
|
|
}
|
|
|
|
[DllImport("gstreamer-0.10.dll")]
|
|
private static extern bool gst_element_query_duration(IntPtr raw, ref Format format, out long duration);
|
|
|
|
public bool QueryDuration(Gst.Format format, out long duration)
|
|
{
|
|
return gst_element_query_duration(Handle, ref format, out duration);
|
|
}
|
|
|
|
public void Connect(string signal, GLib.DynamicSignalHandler handler)
|
|
{
|
|
GLib.DynamicSignal.Connect(this, signal, handler);
|
|
}
|
|
|
|
public void Disconnect(string signal, GLib.DynamicSignalHandler handler)
|
|
{
|
|
GLib.DynamicSignal.Disconnect(this, signal, handler);
|
|
}
|