        audioElement.currentTime = pos * audioElement.duration;
                        updateProgress();
                    }
                });
                
                // Initial update
                updateProgress();
                
                // Mark as initialized
                this.initializedPlayers[recordId] = true;
                console.log('Audio player successfully initialized for ID:', recordId);
            },

            // Updated method to play/pause audio from the ma