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
20 lines
659 B
JavaScript
20 lines
659 B
JavaScript
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();
|