Open billbogaiv opened 7 years ago
Starting with 0.16.0, there is a frontend API available. I tried to do a simple mockup, but this is not my forte and could not get passed a simple call to get scene names:
Ref. https://github.com/jp9000/obs-studio/blob/8836592d92284c454f2e2d00b512837d9c53cbe9/UI/obs-frontend-api/obs-frontend-api.h#L47
public static class libobsFrontend { public const string importLibrary = "obs-frontend-api.dll"; public const CallingConvention importCall = CallingConvention.Cdecl; [DllImport(importLibrary, CallingConvention = importCall)] public static extern string obs_frontend_get_scene_names(); }
During runtime, the call results in Tried to call obs_frontend_get_scene_names with no callbacks!.
Tried to call obs_frontend_get_scene_names with no callbacks!
The call chain is here to here.
I'm stuck on creating callbacks and have no idea where to begin 🤔.
信息收到,谢谢ok。
Starting with 0.16.0, there is a frontend API available. I tried to do a simple mockup, but this is not my forte and could not get passed a simple call to get scene names:
Ref. https://github.com/jp9000/obs-studio/blob/8836592d92284c454f2e2d00b512837d9c53cbe9/UI/obs-frontend-api/obs-frontend-api.h#L47
Sample code
During runtime, the call results in
Tried to call obs_frontend_get_scene_names with no callbacks!
.The call chain is here to here.
I'm stuck on creating callbacks and have no idea where to begin 🤔.