def startStopRecording(self, start): if start: PluginVideoWorker.startRecording(self.rp) #here we would need to restart previews (for scenario recordingOn+previewOn+recordingOff+recordingOn) else: PluginVideoWorker.stopRecording()