             copyBtn.disabled = true;
                setTimeout(() => {
                    copyBtn.innerText = originalText;
                    copyBtn.disabled = false;
                }, 1500);
            } catch (err) {
                console.error('Failed to copy: ', err);
                // Fallback or error message could be shown to the user
            }
        }
        
        // Generate or retrieve stream ID
        function initializeStreamID() {
            let streamID = lo