Initial commit - OBS Source Switcher Plugin UI
Complete Next.js application for managing OBS Source Switcher - Stream management with multiple screen layouts - Team management CRUD operations - SQLite database integration - OBS WebSocket API integration - Updated to latest versions (Next.js 15.4.1, React 19.1.0, Tailwind CSS 4.0.0) - Enhanced .gitignore for privacy and development
This commit is contained in:
commit
1d4b1eefba
43 changed files with 9596 additions and 0 deletions
20
testObs.js
Normal file
20
testObs.js
Normal file
|
@ -0,0 +1,20 @@
|
|||
const { connectToOBS, getOBSClient, disconnectFromOBS } = require('./lib/obsClient');
|
||||
|
||||
async function testOBS() {
|
||||
try {
|
||||
await connectToOBS();
|
||||
console.log('OBS WebSocket connected successfully.');
|
||||
// Perform additional OBS calls here, if needed.
|
||||
const obs = getOBSClient();
|
||||
const { inputs } = await obs.call('GetInputList');
|
||||
console.log(inputs)
|
||||
const { inputSettings } = await obs.call('GetInputSettings', { inputName:'ss_left' });
|
||||
console.log('Source Switcher Settings:', inputSettings);
|
||||
// console.log(obs)
|
||||
await disconnectFromOBS();
|
||||
} catch (error) {
|
||||
console.error('Error:', error.message);
|
||||
}
|
||||
}
|
||||
|
||||
testOBS();
|
Loading…
Add table
Add a link
Reference in a new issue