How to get keyboard events in gstreamer app?

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

How to get keyboard events in gstreamer app?

Alex Song
Hi folks,

I'm writing a console application without GUI and would like use some keys to
control playback, like fast forward etc.

Is there a way that I can get the keyboard events from glib/gstreamer?

Many thanks,

Alex


_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: How to get keyboard events in gstreamer app?

Stefan Sauer
On 06/27/11 20:31, Alex Song wrote:
> Hi folks,
>
> I'm writing a console application without GUI and would like use some keys to
> control playback, like fast forward etc.
>
> Is there a way that I can get the keyboard events from glib/gstreamer?

You will get the keyboard events from the UI toolkit you use (e.g. gtk
or qt).

Stefan
> Many thanks,
>
> Alex
>
>
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: How to get keyboard events in gstreamer app?

Alex Song

Thanks Stefan. Unfortunately I don't have UI toolkit. And I'd like to use a
simple console application to quickly test my plugin.

So there doesn't seem to be a way to do this? I googled but didn't find
anything.

Thanks,

Alex

>>>>> On Mon, 27 Jun 2011 21:16:32 -0700, [hidden email] wrote:

    > On 06/27/11 20:31, Alex Song wrote:
    >> Hi folks,
    >>
    >> I'm writing a console application without GUI and would like use some
    >> keys to control playback, like fast forward etc.
    >>
    >> Is there a way that I can get the keyboard events from glib/gstreamer?

    > You will get the keyboard events from the UI toolkit you use (e.g. gtk
    > or qt).

    > Stefan
    >> Many thanks,
    >>
    >> Alex
    >>
    >>
    >> _______________________________________________ gstreamer-devel mailing
    >> list [hidden email]
    >> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

    > _______________________________________________ gstreamer-devel mailing
    > list [hidden email]
    > http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

--
The  end of  our foundation  is  knowledge of  causes, and  secret motions  of
things; and the  enlarging of the bounds of human empire,  to the effecting of
all things possible.  - Francis Bacon, New Atlantis


_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: How to get keyboard events in gstreamer app?

Olivier Aubert-2
You can use the navseek / navigationtest (mouse) elements to handle
navigation. Either as-is for common needs, or use them as inspiration to
define you own controls.

Olivier

On Tue, 2011-06-28 at 00:28 -0400, Alex Song wrote:

> Thanks Stefan. Unfortunately I don't have UI toolkit. And I'd like to use a
> simple console application to quickly test my plugin.
>
> So there doesn't seem to be a way to do this? I googled but didn't find
> anything.
>
> Thanks,
>
> Alex
>
> >>>>> On Mon, 27 Jun 2011 21:16:32 -0700, [hidden email] wrote:
>
>     > On 06/27/11 20:31, Alex Song wrote:
>     >> Hi folks,
>     >>
>     >> I'm writing a console application without GUI and would like use some
>     >> keys to control playback, like fast forward etc.
>     >>
>     >> Is there a way that I can get the keyboard events from glib/gstreamer?
>
>     > You will get the keyboard events from the UI toolkit you use (e.g. gtk
>     > or qt).
>
>     > Stefan
>     >> Many thanks,
>     >>
>     >> Alex
>     >>
>     >>
>     >> _______________________________________________ gstreamer-devel mailing
>     >> list [hidden email]
>     >> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
>     > _______________________________________________ gstreamer-devel mailing
>     > list [hidden email]
>     > http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>


_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel