feat(video): add slot that plays or pauses according to current state
What does this MR do?
This MR :
- Adds new slot to
IGrabber
that plays or pauses. - Adds two state booleans on
IGrabber
. - Adds declaration to start, stop and pause on
IGrabber
. - Adds parent call to all derived grabbers for start, stop, pause.
pause
and start
slots are called then states between the checkable button and the player could be incoherent.
How to test it?
DIY!!
You can choose to add a SSignalShortcut
to an existing application that contains a grabber
e.g.
<service uid="playPause" type= "::guiQt::SSignalShortcut" >
<config shortcut="Space" sid="mainView" />
</service>
Start it and connect it to your player through the activated
signal and the playPauseCamera
slot :
e.g.
<connect>
<signal>playPause/activated</signal>
</connect>
or
Edited by Flavien BRIDAULT