[gst-devel] Fakesink and GstNavigation

Jan Schmidt thaytan at noraisin.net
Thu Dec 9 23:13:53 CET 2010


On Thu, 2010-12-09 at 20:46 +0100, Nicolas wrote:
> Hello,
> 
> Thanks for your response.
> Ok, I have the gstreamer plugin and i implemented the navigation interface.
> 
> My problem is I don't know what to put in the function:
> 
> static void evas_video_sink_navigation_send_event (GstNavigation * 
> navigation, GstStructure * structure)
> 
> What is require in this function ?

Here's one example:

http://cgit.freedesktop.org/gstreamer/gst-plugins-base/tree/sys/xvimage/xvimagesink.c#n2730

The xvimagesink implementation is about as complex as it gets, because
the xvimagesink supports scaling and offsetting of the video into the
output surface. The navigation_send_event implementation reverses those
operations, so it takes mouse clicks in the window coordinates, and
converts it back to a mouse click coordinate within the original video.

- Jan.

> 
> Thanks in advance,
> Nicolas.
> 
> 
> >> Hello,
> >>
> >> I created a "playbin2" and a "fakesink" (I render the video in an evas
> >> image)
> >> Now my problem is that "fakesink" has no "GstNavigation".
> >> How can I do to implement the "GstNavigation" to "Fakesink" ?
> >>      
> > That is the wrong approach. You rather want to implement a evasvideosink and
> > implement the navigation iface there.
> >
> > Stefan
> 
> 
> ------------------------------------------------------------------------------
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
> 

-- 
Jan Schmidt <thaytan at noraisin.net>





More information about the gstreamer-devel mailing list