Overlay
Object Hierarchy:
Description:
[ CCode ( type_cname = "GstVideoOverlayInterface" , type_id = "gst_video_overlay_get_type ()" ) ]
[ GIR ( name = "VideoOverlay" ) ]
public interface Overlay : Object
Example: GTK-Integration:
public int main (string[] args) {
Gtk.init (ref args);
Gst.init (ref args);
if (args.length != 2) {
print ("% [VIDEO]\n", args[0]);
return 0;
}
var win = new Gtk.Window ();
uint val = 0;
uint *handle = &val;
win.realize.connect (() => {
handle = (uint*) ((Gdk.X11.Window) win.get_window ()).get_xid ();
});
var e = Gst.ElementFactory.make ("playbin","playbin");
e.bus.add_watch(0,(bus,message) => {
if(Gst.Video.is_video_overlay_prepare_window_handle_message (message)) {
Gst.Video.Overlay overlay = message.src as Gst.Video.Overlay;
assert (overlay != null);
overlay.set_window_handle (handle);
}
return true;
});
e["uri"] = args[1];
e.set_state (Gst.State.PLAYING);
win.destroy.connect (Gtk.main_quit);
win.show_all ();
Gtk.main ();
return 0;
}
valac --pkg gstreamer-video-1.0 --pkg gtk+-3.0 --pkg gdk-x11-3.0 gtk-integration.vala
Content:
Static methods:
- public static void install_properties (ObjectClass oclass, int last_prop_id)
- public static bool set_property (Object object, int last_prop_id, uint property_id, Value value)
Methods:
Inherited Members:
All known members inherited from class GLib.Object
- @get
- @new
- @ref
- @set
- add_toggle_ref
- add_weak_pointer
- bind_property
- connect
- constructed
- disconnect
- dispose
- dup_data
- dup_qdata
- force_floating
- freeze_notify
- get_class
- get_data
- get_property
- get_qdata
- get_type
- getv
- interface_find_property
- interface_install_property
- interface_list_properties
- is_floating
- new_valist
- new_with_properties
- newv
- notify
- notify_property
- ref_count
- ref_sink
- remove_toggle_ref
- remove_weak_pointer
- replace_data
- replace_qdata
- set_data
- set_data_full
- set_property
- set_qdata
- set_qdata_full
- set_valist
- setv
- steal_data
- steal_qdata
- thaw_notify
- unref
- watch_closure
- weak_ref
- weak_unref