gst_video_overlay_set_window_handle from GTK#
yannick inizan
inizan.yannick at gmail.com
Wed Jan 6 07:28:47 PST 2016
another sample with gtksink :
using System;
namespace toto
{
class MainClass
{
public static void Main (string[] args)
{
Gst.Application.Init ();
Gtk.Application.Init ();
var playbin = Gst.ElementFactory.Make ("playbin", "bin");
var gtksink = Gst.ElementFactory.Make ("gtksink", "sink");
playbin ["video-sink"] = gtksink;
playbin ["uri"] = "http://path/to/file";
var win = new Gtk.Window ("Test");
win.Realized += (object sender, EventArgs e) => {
playbin.SetState(Gst.State.Playing);
};
win.Add ((Gtk.Widget)gtksink["widget"]);
win.ShowAll ();
Gtk.Application.Run ();
}
}
}
2016-01-06 9:09 GMT+01:00 Sebastian Dröge <sebastian at centricular.com>:
> On Di, 2016-01-05 at 19:20 -0800, doon wrote:
> > I found solution.
> > The problem was due to using wrong GTK widget: I used image widget,
> > but I had to use drawingarea. Simple but painful mistake.
>
> Ah great, that makes sense! If you don't mind, can you share your code
> somewhere in case others want to achieve something similar in the
> future?
>
> --
> Sebastian Dröge, Centricular Ltd · http://www.centricular.com
>
>
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20160106/3c76e716/attachment.html>
More information about the gstreamer-devel
mailing list