e.key === 'Enter' && togglePlayPause()}
- tabIndex={0}
- role="button"
aria-label="Play or pause video"
/>
)}
{/* Clickable overlay for the entire video when not in playing-with-sound mode */}
{showPlayButton && (
-
e.key === 'Enter' && playWithSound()}
- tabIndex={0}
- role="button"
aria-label="Play with sound"
/>
)}