mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-04 23:46:43 +00:00
8ece992223
...and clean up/simplify the DynamicSignal stuff.
125 lines
2.5 KiB
Text
125 lines
2.5 KiB
Text
[GLib.Property ("stream-info-value-array") ]
|
|
public StreamInfo[] StreamInfos {
|
|
get {
|
|
GLib.Value val = GetProperty ("stream-info-value-array");
|
|
GLib.ValueArray va = (GLib.ValueArray) val;
|
|
StreamInfo[] ret = new StreamInfo[va.Count];
|
|
for (int i = 0; i < va.Count; i++)
|
|
ret[i] = (StreamInfo) va[i];
|
|
|
|
va.Dispose ();
|
|
val.Dispose ();
|
|
return ret;
|
|
}
|
|
}
|
|
|
|
public class StreamInfo : GLib.Object {
|
|
|
|
[GLib.Property ("object") ]
|
|
public Gst.Object Object {
|
|
get {
|
|
GLib.Value val = GetProperty ("object");
|
|
Gst.Object ret = (Gst.Object) val;
|
|
val.Dispose ();
|
|
return ret;
|
|
}
|
|
}
|
|
|
|
[GLib.Property ("type") ]
|
|
public StreamType Type {
|
|
get {
|
|
GLib.Value val = GetProperty ("type");
|
|
StreamType ret = (StreamType) val;
|
|
val.Dispose ();
|
|
return ret;
|
|
}
|
|
}
|
|
|
|
[GLib.Property ("decoder") ]
|
|
public string Decoder {
|
|
get {
|
|
GLib.Value val = GetProperty ("decoder");
|
|
string ret = (string) val;
|
|
val.Dispose ();
|
|
return ret;
|
|
}
|
|
}
|
|
|
|
[GLib.Property ("mute") ]
|
|
public bool Mute {
|
|
get {
|
|
GLib.Value val = GetProperty ("mute");
|
|
bool ret = (bool) val;
|
|
val.Dispose ();
|
|
return ret;
|
|
}
|
|
set {
|
|
GLib.Value val = new GLib.Value (this, "mute");
|
|
val.Val = value;
|
|
SetProperty ("mute", val);
|
|
val.Dispose ();
|
|
}
|
|
}
|
|
|
|
|
|
[GLib.Property ("caps") ]
|
|
public Gst.Caps Caps {
|
|
get {
|
|
GLib.Value val = GetProperty ("caps");
|
|
Gst.Caps ret = (Gst.Caps) val;
|
|
val.Dispose ();
|
|
return ret;
|
|
}
|
|
}
|
|
|
|
[GLib.Property ("language-code") ]
|
|
public string LanguageCode {
|
|
get {
|
|
GLib.Value val = GetProperty ("language-code");
|
|
string ret = (string) val;
|
|
val.Dispose ();
|
|
return ret;
|
|
}
|
|
}
|
|
|
|
[GLib.Property ("codec") ]
|
|
public string Codec {
|
|
get {
|
|
GLib.Value val = GetProperty ("codec");
|
|
string ret = (string) val;
|
|
val.Dispose ();
|
|
return ret;
|
|
}
|
|
}
|
|
|
|
public delegate void MutedHandler (object o, MutedArgs args);
|
|
|
|
public class MutedArgs : GLib.SignalArgs {
|
|
public bool Mute {
|
|
get {
|
|
return (bool) Args[0];
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
public event MutedHandler Muted {
|
|
add {
|
|
DynamicSignal.Connect (this, "muted", value);
|
|
}
|
|
|
|
remove {
|
|
DynamicSignal.Disconnect (this, "muted", value);
|
|
}
|
|
}
|
|
|
|
[GTypeName ("GstStreamType") ]
|
|
public enum StreamType {
|
|
Unknown = 0,
|
|
Audio = 1,
|
|
Video = 2,
|
|
Text = 3,
|
|
Subpicture = 4,
|
|
Element = 5
|
|
}
|
|
}
|