AugmentedUnreality
AugmentedUnreality copied to clipboard
Adding a video source
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!
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 tothis->ConfigurationsConnect- activate this video source, a configuration from the list created inDiscoverConfigurationsspecifies which variant (for example which resolution) of operation is requestedGetNextFrame(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:
