obs-ss-plugin-webui/testObs.js
Decobus 1d4b1eefba
Some checks failed
Lint and Build / build (20) (push) Has been cancelled
Lint and Build / build (22) (push) Has been cancelled
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
2025-07-15 22:15:57 -04:00

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();