Skip to content

Commit

Permalink
Only function is now used to initialize node-obs (stream-labs#581)
Browse files Browse the repository at this point in the history
  • Loading branch information
eddyStreamlabs authored and avacreeth committed Oct 26, 2017
1 parent ad3f6f5 commit a27a3cc
Showing 1 changed file with 1 addition and 25 deletions.
26 changes: 1 addition & 25 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -203,31 +203,7 @@ function startApp() {
}

// Initialize various OBS services
obs.OBS_API_initOBS_API(app.getPath('userData'));

obs.OBS_API_openAllModules();
obs.OBS_API_initAllModules();

obs.OBS_service_createStreamingOutput();
obs.OBS_service_createRecordingOutput();

obs.OBS_service_createVideoStreamingEncoder();
obs.OBS_service_createVideoRecordingEncoder();

obs.OBS_service_createAudioEncoder();

obs.OBS_service_resetAudioContext();
obs.OBS_service_resetVideoContext();

obs.OBS_service_associateAudioAndVideoToTheCurrentStreamingContext();
obs.OBS_service_associateAudioAndVideoToTheCurrentRecordingContext();

obs.OBS_service_createService();

obs.OBS_service_associateAudioAndVideoEncodersToTheCurrentStreamingOutput();
obs.OBS_service_associateAudioAndVideoEncodersToTheCurrentRecordingOutput();

obs.OBS_service_setServiceToTheStreamingOutput();
obs.OBS_API_initAPI(app.getPath('userData'));
}

// This ensures that only one copy of our app can run at once.
Expand Down

0 comments on commit a27a3cc

Please sign in to comment.