       var outputDiv;
            var inputDiv;
            var ws;
            var isRecording = false;
            var audioChunksReceived = [];
            var audioChunksSent = [];
            var chatHistory;
            var processor; // Audio processor.
            var inputTimer; // Timer for input button.
            var shareScreenTimer; // Timer for Share Screen button.

            var videoTimer = null; // Timer for Play Video button.
            var video;
            var videoCanvas = documen