Skip to content

feat(video): add slot that plays or pauses according to current state

Luis MENDOZA requested to merge feat/igrabber-play-pause-slot into dev

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.

: This new slot should be used with precaution while calling it with a single checkable button, if ever normal 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

Merge request reports