4 ms·
For that specific project - no. But I'm also using this code in a consumer focused desktop client, for gamers to record their own gameplay and review it back (
by davidweatherall 5y ago
For that specific project - no.
But I'm also using this code in a consumer focused desktop client, for gamers to record their own gameplay and review it back (replays.lol)
The obs-studio-node integration code can be found here: https://github.com/davidweatherall/replayslol-obs-recorder/blob/main/src/NodeRecorder.ts https://github.com/davidweatherall/replayslol-obs-recorder/b...
The purpose of this code is to find the active league of legends executable, create a 'Game Capture' source with the league of legends window as the input, and then add that source to a 'Scene', and then start recording when triggered, and stop recording when triggered.
The function (setupScene) on line 55 is the interesting OBS stuff.
Unfortunately this doesn't include any overlay stuff, but it's all done in a similar way, where I add a source with a locally hosted server as a 'Browser' Source on top of the gameplay, with the parameters of the URL telling the server what information I want to be displayed on the website.
The overlay is just a website, with a transparent background, and content determined by the parameters. - Here is what the website base code looks like - https://gist.github.com/davidweatherall/68e6d4422ce4c0b6fbccffca73151c2f https://gist.github.com/davidweatherall/68e6d4422ce4c0b6fbcc...
- sofixa 5y agoThanks!