
                            obsStudio.stopRecording();
                            console.log("[OBS] Recording stop command sent");
                        } catch (err) {
                            console.error("[OBS] Error stopping recording:", err);
                        }
                    } else {
                        console.warn("[OBS] API not available");
                    }
                    break;
                    
                case 'obsStartStreaming':
           