Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding a video source #28

Open
alicranck opened this issue Jul 20, 2018 · 1 comment
Open

Adding a video source #28

alicranck opened this issue Jul 20, 2018 · 1 comment

Comments

@alicranck
Copy link

alicranck commented Jul 20, 2018

Hi,

I'm looking at adding an NDI(https://www.newtek.com/ndi/) video source to your plugin. I would love to hear your input about what's the best way to go about it i.e. what methods to override and how to make sure I don't break your code.

Thanks!

@adynathos
Copy link
Owner

First, please extend UAURVideoSource and implement the methods.
UAURVideoSourceTest is a good example. The important methods:

  • DiscoverConfigurations - creates entries in the list of available sources in the UI: create an FAURVideoConfiguration, set the name and resolution and add it to this->Configurations
  • Connect - activate this video source, a configuration from the list created in DiscoverConfigurations specifies which variant (for example which resolution) of operation is requested
  • GetNextFrame(cv::Mat_<cv::Vec3b>& frame) - get the next frame and write it to the provided matrix

Finally, create a blueprint extending the class and add it to the list in ExampleDriver:
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants