gstreamer/gstreamer-sharp/plugins-base/PlayBin.cs
Aaron Bockover 88b3b2c712 2006-05-20 Aaron Bockover <aaron@abock.org>
* autogen.sh: Fixed a left over configure.in to configure.ac

    * confiugre.ac: Added check foo for NUnit

    * gstreamer-sharp.mdp:
    * gstreamer-sharp.mds: Added MonoDevelop solution

    * source/Makefile.am: Cleaned and fixed

    * tests/ConsoleUi.cs:
    * tests/ApplicationTest.cs:
    * tests/BinTest.cs:
    * tests/Makefile.am: Added NUnit test framework and a few tests for
    Gst.Application and Gst.Bin

    * gstreamer-sharp/CommonTags.cs:
    * gstreamer-sharp/*.custom:
    * gstreamer-sharp/glue/*.c: Cleaned up

    * gstreamer-sharp/Application.cs: New application bindings; fixed
    to work properly with GStreamer 0.10

    * gstreamer-sharp/Version.cs: New Gst.Version class

    * gstreamer-sharp/Makefile.am: Added Version.cs

    * gstreamer-sharp/plugins-base/PlayBin.cs: Fixed and extended PlayBin
    element binding with new (but not all) properties

    * Makefile.am: Added tests



git-svn-id: svn://anonsvn.mono-project.com/source/branches/abock/gstreamer-sharp@60902 e3ebcda4-bce8-0310-ba0a-eca2169e7518
2006-05-20 22:35:40 +00:00

128 lines
3.2 KiB
C#

//
// PlayBin.cs: playbin element binding
//
// Authors:
// Aaron Bockover (abockover@novell.com)
//
// (C) 2006 Novell, Inc.
//
using System;
using System.Collections;
using System.Runtime.InteropServices;
namespace Gst
{
public class PlayBin : Pipeline
{
public PlayBin(IntPtr raw) : base(raw)
{
}
[GLib.Property("uri")]
public string Uri {
get {
GLib.Value val = GetProperty("uri");
string ret = val.Val as string;
val.Dispose();
return ret;
}
set {
GLib.Value val = new GLib.Value(value);
SetProperty("uri", val);
val.Dispose();
}
}
[GLib.Property("suburi")]
public string SubUri {
get {
GLib.Value val = GetProperty("suburi");
string ret = val.Val as string;
val.Dispose();
return ret;
}
set {
GLib.Value val = new GLib.Value(value);
SetProperty("suburi", val);
val.Dispose();
}
}
[GLib.Property("source")]
public Element Source {
get {
GLib.Value val = GetProperty("source");
Element element = val.Val as Element;
val.Dispose();
return element;
}
}
[GLib.Property("audio-sink")]
public Element AudioSink {
get {
GLib.Value val = GetProperty("audio-sink");
Element ret = val.Val as Element;
val.Dispose();
return ret;
}
set {
GLib.Value val = new GLib.Value(value);
SetProperty("audio-sink", val);
val.Dispose();
}
}
[GLib.Property("video-sink")]
public Element VideoSink {
get {
GLib.Value val = GetProperty("video-sink");
Element ret = val.Val as Element;
val.Dispose();
return ret;
}
set {
GLib.Value val = new GLib.Value(value);
SetProperty("video-sink", val);
val.Dispose();
}
}
[GLib.Property("vis-plugin")]
public Element VisPlugin {
get {
GLib.Value val = GetProperty("vis-plugin");
Element ret = val.Val as Element;
val.Dispose();
return ret;
}
set {
GLib.Value val = new GLib.Value(value);
SetProperty("vis-plugin", val);
val.Dispose();
}
}
[GLib.Property("volume")]
public double Volume {
get {
GLib.Value val = GetProperty("volume");
double ret = (double)val.Val;
val.Dispose();
return ret;
}
set {
GLib.Value val = new GLib.Value(value);
SetProperty("volume", val);
val.Dispose();
}
}
}
}