fgenolini / frank

Frank coding experiments
MIT License
1 stars 1 forks source link

Mac OSX list of video input devices #11

Closed fgenolini closed 4 years ago

fgenolini commented 4 years ago

Display list of video input devices for Mac OSX As a user, I want to have a list of video input devices that are connected to my Apple Mac, so that I can enable or disable them in the GUI.

Parse output of command line swift script Call the command line swift code that uses AVFoundation to get the list of video input devices, parse the standard output, and convert the results to a vector of input_device objects.

Direct programming of AVFoundation Compiling and linking against the Apple Mac OSX AVFoundation framework requires Objective-C or Swift and adds complexity to the build process.

Simplicity of swift command line scripting An Apple Swift interpreted script is simple to write and reduces complexity of the C++ support for the Apple Mac OSX platform.