GNOME Bugzilla – Bug 747245
navigation: Post navigation events as message on the bus
Last modified: 2015-04-29 13:48:46 UTC
For some use-cases, it would be nice to get on the bus the various keyboard/mouse events that have taken place on the sink The attached patches contain the proposed API, an implementation in xvimagesink and usage in gst-play
Created attachment 300820 [details] [review] video: Add a new "event" navigation message type This will be useful for elements that wish to post unhandled navigation events on the bus to give the application a chance to do something with it
Created attachment 300821 [details] [review] xvimagesink: Post unhandled navigation events on the bus
Created attachment 300822 [details] [review] tools: Add mouse/keyboard handling from messages Allows the user to control playback with the window in focus
Very cool, been meaning to add that to gst-play myself. > [commit message] > events on the bus to give the application > a chance to do something with it it -> them - gst_navigation_message_new_event: make ownership transfer or not explicit (= "none" here I think?) - gst_navigation_message_parse_event: make ownership transfer explicit (=full here?) and add a sentence to say that the caller must unref the event when no longer needed. - naming: been wondering if it should be 'unhandled event' rather than just 'event', because the message is only posted if the event was unhandled, no? But I guess generic is better.
Review of attachment 300820 [details] [review]: cool
Review of attachment 300821 [details] [review]: OK
Review of attachment 300822 [details] [review]: cool
Attachment 300820 [details] pushed as 01e2a21 - video: Add a new "event" navigation message type Attachment 300821 [details] pushed as c90a3ac - xvimagesink: Post unhandled navigation events on the bus Attachment 300822 [details] pushed as bba3f57 - tools: Add mouse/keyboard handling from messages