stream-labs / obs-studio-node

libOBS (OBS Studio) for Node.Js, Electron and similar tools
GNU General Public License v2.0
616 stars 100 forks source link

OBS_API_initAPI Error #795

Open DavidSongzw opened 3 years ago

DavidSongzw commented 3 years ago

Windows, OBS_API_initAPI Initialization is success in the development mode. An error is reported after the package is completed. local logs:

[000:00:00:01.442.190.800][Info] Reset video failed with error: -1 [000:00:00:01.442.221.100][Info] Error returning now

CNunicorn6 commented 3 years ago

@DavidSongzw Hi, have you solved your problem yet?I have the same problem as you

304766663 commented 3 years ago

try add obs_init_core_path in obs_init.

static bool obs_init_core_path(void) { char *exe_path = os_get_executable_path_ptr("data/libobs/"); if (!exe_path) { return false; } obs_add_data_path(exe_path); return true; }