 muted = payload.muted === 'toggle' ? undefined : 
                                    (payload.muted === true || payload.muted === 'true');
                        
                        if (muted === undefined) {
                            // Toggle mute state
                            obsWebSocket.call('GetInputMute', { inputName: payload.sourceName })
                                .then(async (state) => {
                                    await obsWebSocket.call('SetInputMute', {
      