Jump to content
  • 0
Alexey

Detect Record press

Question

5 answers to this question

Recommended Posts

  • 0

You'll need to set a StatusChanged callback for WbtApi::WbtStatus using the setStatusChangedCallback function. This will give you an updated WbtCommon::Data::WbtStatusData whenever the state of the WBT changes. The WbtStatusData object contains all the information you need to determine when the WBT has started a recording, not just via the record button, but by any means. 

Share this post


Link to post
Share on other sites
  • 1

So this means the app will receive the update only after the user pressed the button and recording started. And there's no way to set recording file name prior to that?

Yes, as of right now the App will be informed after the recording has started. It is not currently possible to intercept these events or change how they behave, though there is possibility of that functionality being added in the future.

For now you may consider having your App providing it's own record button in which you do have control over parameters such as the name of the file.

Edited by Chris A
Adding quote to make context apparent.

Share this post


Link to post
Share on other sites
  • 1

Current API is 2.4.5.4. Does it contain methods to intercept Record/Stop button? If yes, where exactly are they? If not, is there a rough estimation of when this will be implemented?

It does not. Currently, our API does not interact with the display elements of the WBT or have visibility of the Qt signals and slots.

Even though there is the possibility that this functionality may be added in the future, there are no near-term plans to integrate this functionality, nor is a long term plan finalized on how / when we would allow intercepting of events across process boundaries.

In the meantime, I would implement such desired control functionality within the application itself, or listen and react to stream stop events as the API has no ownership or access to the main WBT form controls at this time.

Share this post


Link to post
Share on other sites
  • 0

You'll need to set a StatusChanged callback for WbtApi::WbtStatus using the setStatusChangedCallback function. This will give you an updated WbtCommon::Data::WbtStatusData whenever the state of the WBT changes. The WbtStatusData object contains all the information you need to determine when the WBT has started a recording, not just via the record button, but by any means. 

So this means the app will receive the update only after the user pressed the button and recording started. And there's no way to set recording file name prior to that?

Share this post


Link to post
Share on other sites
  • 0

It is not currently possible to intercept these events or change how they behave, though there is possibility of that functionality being added in the future.

Current API is 2.4.5.4. Does it contain methods to intercept Record/Stop button? If yes, where exactly are they? If not, is there a rough estimation of when this will be implemented?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×