自版本 24.0.0.60 起,ScriptStartDynamic 已在 vMix API 中
禁用。出于安/全原因,已禁用此功能,建议用户寻求以下替代方案:
禁用。出于安/全原因,已禁用此功能,建议用户寻求以下替代方案:
一次调用多个函数
调用具有多个函数的动态脚本与通过代码分别调用它们相比,没有性能优势。
事实上,由于每次都需要编译动态脚本,所以使用下面的方法会更快。
例如在 VB.NET 中:
dim w as new System.Net.WebClient
w.DownloadString("http://127.0.0.1:8088/API/?Function=Function1")
w.DownloadString("http://127.0.0.1:8088/API/?Function=Function2")
w.DownloadString("http://127.0.0.1:8088/API/?Function=Function3")
等等根据需要。
从远程机器调用函数
这与前面的示例类似。
dim w as new System.Net.WebClient
w.DownloadString("http://remoteiporhostname:8088/API/?Function=Function1")