<div dir="ltr">another sample with gtksink :<br><br><div>
<font face="Monospace">
<span style="color:rgb(0,150,149)">using</span><span style="color:rgb(51,51,51)"> System</span><span style="color:rgb(51,51,51)">;</span><br>
<br>
<span style="color:rgb(0,150,149)">namespace</span><span style="color:rgb(51,51,51)"> toto</span><br>
<span style="color:rgb(51,51,51)">{</span><br>
<span style="color:rgb(51,51,51)"> </span><span style="color:rgb(0,150,149)">class</span><span style="color:rgb(51,51,51)"> </span><span style="color:rgb(51,100,164)">MainClass</span><br>
<span style="color:rgb(51,51,51)"> </span><span style="color:rgb(51,51,51)">{</span><br>
<span style="color:rgb(51,51,51)"> </span><span style="color:rgb(0,150,149)">public</span><span style="color:rgb(51,51,51)"> </span><span style="color:rgb(0,150,149)">static</span><span style="color:rgb(51,51,51)"> </span><span style="color:rgb(0,150,149)">void</span><span style="color:rgb(51,51,51)"> </span><span style="color:rgb(51,51,51)">Main</span><span style="color:rgb(51,51,51)"> </span><span style="color:rgb(51,51,51)">(</span><span style="color:rgb(0,150,149)">string</span><span style="color:rgb(51,51,51)">[]</span><span style="color:rgb(51,51,51)"> </span><span style="color:rgb(51,51,51)">args</span><span style="color:rgb(51,51,51)">)</span><br>
<span style="color:rgb(51,51,51)"> </span><span style="color:rgb(51,51,51)">{</span><br>
<span style="color:rgb(51,51,51)"> Gst</span><span style="color:rgb(51,51,51)">.</span><span style="color:rgb(51,100,164)">Application</span><span style="color:rgb(51,51,51)">.</span><span style="color:rgb(51,51,51)">Init</span><span style="color:rgb(51,51,51)"> </span><span style="color:rgb(51,51,51)">()</span><span style="color:rgb(51,51,51)">;</span><br>
<span style="color:rgb(51,51,51)"> Gtk</span><span style="color:rgb(51,51,51)">.</span><span style="color:rgb(51,100,164)">Application</span><span style="color:rgb(51,51,51)">.</span><span style="color:rgb(51,51,51)">Init</span><span style="color:rgb(51,51,51)"> </span><span style="color:rgb(51,51,51)">()</span><span style="color:rgb(51,51,51)">;</span><br>
<br>
<span style="color:rgb(51,51,51)"> </span><span style="color:rgb(0,150,149)">var</span><span style="color:rgb(51,51,51)"> </span><span style="color:rgb(51,51,51)">playbin</span><span style="color:rgb(51,51,51)"> </span><span style="color:rgb(51,51,51)">=</span><span style="color:rgb(51,51,51)"> Gst</span><span style="color:rgb(51,51,51)">.</span><span style="color:rgb(51,100,164)">ElementFactory</span><span style="color:rgb(51,51,51)">.</span><span style="color:rgb(51,51,51)">Make</span><span style="color:rgb(51,51,51)"> </span><span style="color:rgb(51,51,51)">(</span><span style="color:rgb(245,125,0)">"</span><span style="color:rgb(245,125,0)">playbin</span><span style="color:rgb(245,125,0)">"</span><span style="color:rgb(51,51,51)">,</span><span style="color:rgb(51,51,51)"> </span><span style="color:rgb(245,125,0)">"</span><span style="color:rgb(245,125,0)">bin</span><span style="color:rgb(245,125,0)">"</span><span style="color:rgb(51,51,51)">)</span><span style="color:rgb(51,51,51)">;</span><br>
<span style="color:rgb(51,51,51)"> </span><span style="color:rgb(0,150,149)">var</span><span style="color:rgb(51,51,51)"> </span><span style="color:rgb(51,51,51)">gtksink</span><span style="color:rgb(51,51,51)"> </span><span style="color:rgb(51,51,51)">=</span><span style="color:rgb(51,51,51)"> Gst</span><span style="color:rgb(51,51,51)">.</span><span style="color:rgb(51,100,164)">ElementFactory</span><span style="color:rgb(51,51,51)">.</span><span style="color:rgb(51,51,51)">Make</span><span style="color:rgb(51,51,51)"> </span><span style="color:rgb(51,51,51)">(</span><span style="color:rgb(245,125,0)">"</span><span style="color:rgb(245,125,0)">gtksink</span><span style="color:rgb(245,125,0)">"</span><span style="color:rgb(51,51,51)">,</span><span style="color:rgb(51,51,51)"> </span><span style="color:rgb(245,125,0)">"</span><span style="color:rgb(245,125,0)">sink</span><span style="color:rgb(245,125,0)">"</span><span style="color:rgb(51,51,51)">)</span><span style="color:rgb(51,51,51)">;</span><br>
<span style="color:rgb(51,51,51)"> </span><span style="color:rgb(51,51,51)">playbin</span><span style="color:rgb(51,51,51)"> </span><span style="color:rgb(51,51,51)">[</span><span style="color:rgb(245,125,0)">"</span><span style="color:rgb(245,125,0)">video</span><span style="color:rgb(245,125,0)">-</span><span style="color:rgb(245,125,0)">sink</span><span style="color:rgb(245,125,0)">"</span><span style="color:rgb(51,51,51)">]</span><span style="color:rgb(51,51,51)"> </span><span style="color:rgb(51,51,51)">=</span><span style="color:rgb(51,51,51)"> </span><span style="color:rgb(51,51,51)">gtksink</span><span style="color:rgb(51,51,51)">;</span><br>
<span style="color:rgb(51,51,51)"> </span><span style="color:rgb(51,51,51)">playbin</span><span style="color:rgb(51,51,51)"> </span><span style="color:rgb(51,51,51)">[</span><span style="color:rgb(245,125,0)">"</span><span style="color:rgb(245,125,0)">uri</span><span style="color:rgb(245,125,0)">"</span><span style="color:rgb(51,51,51)">]</span><span style="color:rgb(51,51,51)"> </span><span style="color:rgb(51,51,51)">=</span><span style="color:rgb(51,51,51)"> </span><span style="color:rgb(245,125,0)">"</span><span style="color:rgb(245,125,0)"><a href="http://path/to/file">http://path/to/file</a></span><span style="color:rgb(245,125,0)">"</span><span style="color:rgb(51,51,51)">;</span><br>
<br>
<span style="color:rgb(51,51,51)"> </span><span style="color:rgb(0,150,149)">var</span><span style="color:rgb(51,51,51)"> </span><span style="color:rgb(51,51,51)">win</span><span style="color:rgb(51,51,51)"> </span><span style="color:rgb(51,51,51)">=</span><span style="color:rgb(51,51,51)"> </span><span style="color:rgb(0,150,149)">new</span><span style="color:rgb(51,51,51)"> Gtk</span><span style="color:rgb(51,51,51)">.</span><span style="color:rgb(51,100,164)">Window</span><span style="color:rgb(51,51,51)"> </span><span style="color:rgb(51,51,51)">(</span><span style="color:rgb(245,125,0)">"</span><span style="color:rgb(245,125,0)">Test</span><span style="color:rgb(245,125,0)">"</span><span style="color:rgb(51,51,51)">)</span><span style="color:rgb(51,51,51)">;</span><br>
<span style="color:rgb(51,51,51)"> </span><span style="color:rgb(51,51,51)">win</span><span style="color:rgb(51,51,51)">.</span><span style="color:rgb(51,51,51)">Realized</span><span style="color:rgb(51,51,51)"> </span><span style="color:rgb(51,51,51)">+=</span><span style="color:rgb(51,51,51)"> </span><span style="color:rgb(51,51,51)">(</span><span style="color:rgb(0,150,149)">object</span><span style="color:rgb(51,51,51)"> </span><span style="color:rgb(51,51,51)">sender</span><span style="color:rgb(51,51,51)">,</span><span style="color:rgb(51,51,51)"> </span><span style="color:rgb(51,100,164)">EventArgs</span><span style="color:rgb(51,51,51)"> </span><span style="color:rgb(51,51,51)">e</span><span style="color:rgb(51,51,51)">)</span><span style="color:rgb(51,51,51)"> </span><span style="color:rgb(51,51,51)">=</span><span style="color:rgb(51,51,51)">></span><span style="color:rgb(51,51,51)"> </span><span style="color:rgb(51,51,51)">{</span><br>
<span style="color:rgb(51,51,51)"> </span><span style="color:rgb(51,51,51)">playbin</span><span style="color:rgb(51,51,51)">.</span><span style="color:rgb(51,51,51)">SetState</span><span style="color:rgb(51,51,51)">(</span><span style="color:rgb(51,51,51)">Gst</span><span style="color:rgb(51,51,51)">.</span><span style="color:rgb(51,100,164)">State</span><span style="color:rgb(51,51,51)">.</span><span style="color:rgb(51,51,51)">Playing</span><span style="color:rgb(51,51,51)">)</span><span style="color:rgb(51,51,51)">;</span><br>
<span style="color:rgb(51,51,51)"> </span><span style="color:rgb(51,51,51)">}</span><span style="color:rgb(51,51,51)">;</span><br>
<span style="color:rgb(51,51,51)"> </span><span style="color:rgb(51,51,51)">win</span><span style="color:rgb(51,51,51)">.</span><span style="color:rgb(51,51,51)">Add</span><span style="color:rgb(51,51,51)"> </span><span style="color:rgb(51,51,51)">((</span><span style="color:rgb(51,51,51)">Gtk</span><span style="color:rgb(51,51,51)">.</span><span style="color:rgb(51,100,164)">Widget</span><span style="color:rgb(51,51,51)">)</span><span style="color:rgb(51,51,51)">gtksink</span><span style="color:rgb(51,51,51)">[</span><span style="color:rgb(245,125,0)">"</span><span style="color:rgb(245,125,0)">widget</span><span style="color:rgb(245,125,0)">"</span><span style="color:rgb(51,51,51)">])</span><span style="color:rgb(51,51,51)">;</span><br>
<span style="color:rgb(51,51,51)"> </span><span style="color:rgb(51,51,51)">win</span><span style="color:rgb(51,51,51)">.</span><span style="color:rgb(51,51,51)">ShowAll</span><span style="color:rgb(51,51,51)"> </span><span style="color:rgb(51,51,51)">()</span><span style="color:rgb(51,51,51)">;</span><br>
<span style="color:rgb(51,51,51)"> Gtk</span><span style="color:rgb(51,51,51)">.</span><span style="color:rgb(51,100,164)">Application</span><span style="color:rgb(51,51,51)">.</span><span style="color:rgb(51,51,51)">Run</span><span style="color:rgb(51,51,51)"> </span><span style="color:rgb(51,51,51)">()</span><span style="color:rgb(51,51,51)">;</span><br>
<span style="color:rgb(51,51,51)"> </span><span style="color:rgb(51,51,51)">}</span><br>
<span style="color:rgb(51,51,51)"> </span><span style="color:rgb(51,51,51)">}</span><br>
<span style="color:rgb(51,51,51)">}</span><br>
</font></div></div><div class="gmail_extra"><br><div class="gmail_quote">2016-01-06 9:09 GMT+01:00 Sebastian Dröge <span dir="ltr"><<a href="mailto:sebastian@centricular.com" target="_blank">sebastian@centricular.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Di, 2016-01-05 at 19:20 -0800, doon wrote:<br>
> I found solution.<br>
> The problem was due to using wrong GTK widget: I used image widget,<br>
> but I had to use drawingarea. Simple but painful mistake.<br>
<br>
</span>Ah great, that makes sense! If you don't mind, can you share your code<br>
somewhere in case others want to achieve something similar in the<br>
future?<br>
<div class="HOEnZb"><div class="h5"><br>
--<br>
Sebastian Dröge, Centricular Ltd · <a href="http://www.centricular.com" rel="noreferrer" target="_blank">http://www.centricular.com</a><br>
<br>
</div></div><br>_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
<br></blockquote></div><br></div>