voc / voctomix

Full-HD Software Live-Video-Mixer in python
https://c3voc.de/
MIT License
579 stars 107 forks source link

Command to fetch Composition-Modes #209

Closed MaZderMind closed 6 years ago

MaZderMind commented 6 years ago

While Video-Sources and Stream-Blanker-Sources are config options and can be retrieved with the get_config command or the to-be implemented get_config_option, there is no such thing for the Composite-Modes, because they are currently hard-coded.

It is certainly possible, that the names and possibly the number and sorting of the composition modes may change in the future. While voctocore and voctomix are easy to keep in sync in such a case, this is not true for 3rd-party Systems and especially for embedded Systems like Voctoknopf.

To help those systems to be future-compatible, a new Command should be implemented, which currently would only iterate the existing Enum.

> get_composite_modes
< composite_modes fullscreen,side_by_side_equal,side_by_side_preview,picture_in_picture