"obs_counter.txt")# 计数器变量counter=0hotkey_id_inc=Nonehotkey_id_dec=None# 更新计数器显示的函数defupdate_counter_text():source=obs.obs_get_source_by_name("Counter")ifsourceisnotNone:settings=obs.obs_data_create()obs.obs_data_set_string(settings,"text",str(counter))obs.obs_source...
A new reference to a data object. Release with obs_data_release(). obs_data_t *obs_data_create_from_json(const char *json_string) Creates a data object from a Json string. Parameters: json_string –Json string Returns: A new reference to a data object. Release with obs_data_rel...
/* Set functions */EXPORTvoidobs_data_set_string(obs_data_t*data,constchar*name,constchar*val);EXPORTvoidobs_data_set_int(obs_data_t*data,constchar*name,longlongval);EXPORTvoidobs_data_set_double(obs_data_t*data,constchar*name,doubleval);EXPORTvoidobs_data_set_bool(obs_data_t*data,con...
obs_data_t *obs_settings = obs_data_create(); obs_data_set_bool(obs_settings, "vcamEnabled", installed); obs_apply_private_data(obs_settings); obs_data_release(obs_settings); return true; } 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. 16. 17. 18. 19. 20...
obs_data_t*font_obj =obs_data_create(); obs_data_set_default_string(font_obj,"face","Arial"); obs_data_set_default_int(font_obj,"size",36); obs_data_set_default_obj(settings, S_FONT, font_obj); obs_data_set_default_string(settings, S_ALIGN, S_ALIGN_LEFT); ...
文件位置数据库安装后会自动生成三个配置文件(gaussdb.conf、gs_hba.conf和gs_ident.conf),并统一存放在数据目录(data)下。用户可以使用本节介绍的方法修改配置文件的名称和存放路径。修改任意一个配置文件的存放目录时,gaussdb.conf里 来自:帮助中心 查看更多 → ...
std::string rtmpNameFormat = "rtmp_stream_%d"; std::string rtmpOutputName = string_format(rtmpNameFormat, uid); obs_data_t* rtmpSettings = obs_data_create(); SetDefaultRtmpSettings(rtmpSettings); auto rtmpSettingsGuard = gsl::finally([&]() { obs_data_release(rtmpSettings); }); ...
obs_data_set_default_bool(settings, "shutdown", false); obs_data_set_default_bool(settings, "restart_when_active", false); obs_data_set_default_int(settings, "webpage_control_level", (int)DEFAULT_CONTROL_LEVEL); obs_data_set_default_string(settings, "css", default_css); obs_...
obs_data_set_default_double(s,"volume",1.0f); }staticobs_properties_t *volume_properties(void*data) { obs_properties_t*ppts =obs_properties_create(); obs_properties_add_float_slider(ppts,"volume","Volume",0,1.0,0.1); UNUSED_PARAMETER(data);returnppts; ...
Java SDK 参考 4 初始化 String sk = "*** Provide your Secret Key ***"; String proxyUrl = "proxy.com"; int proxyPort = 8080; String proxyUser = "userName"; String proxyPassword = "password"; ObsConfiguration config = new ObsConfiguration(); config.setEndPoint(endPoint);...