总结:先根据plugin name和plugin id获取obs source,再根据obs source获取obs properties,再遍历obs properties得到每一条属性。
具体api如下:
1、获取obs source
obs_source_create(SOURCE_ID, SOURCE_NAME, NULL, nullptr);
2、获取obs properties
/**
* Returns the properties list for a specific existing source. Free with
* obs_properties_destroy
*/
EXPORT obs_properties_t *obs_source_properties(const obs_source_t *source);
3、遍历properties
// 遍历
obs_property_t *property = obs_properties_first(properties);
while (property)
{
handling(properity);
obs_property_next(&property);
}