I want you to act as a web developer and please write some code for me to create a responsive video player for a website.
I want you to act as a web developer and please write some code for me to create a responsive video player for a website. Play/Pause: The button icon must switch dynamically based on the state (display “Pause” icon while playing, “Play” icon while paused). Progress bar: Displays the current playback time / total duration. The progress bar supports clicking to navigate (Seek). Displays the progress of buffering (the percentage of loading, usually shown in a lighter color against the progress bar background). Volume control: Tap the mute button. The icon will change to indicate that it is muted, and the volume slider will be set to zero. Display the volume slider when hovering over or focusing on the screen.
AST-based code pattern analysis using ast-grep for security, performance, and structural issues. Use when (1) reviewing code for security vulnerabilities, (2) analyzing React hook dependencies or performance patterns, (3) detecting structural anti-patterns across large codebases, (4) needing systematic pattern matching beyond manual inspection.
Performs WCAG compliance audits and accessibility remediation for web applications. Use when: 1) Auditing UI for WCAG 2.1/2.2 compliance 2) Fixing screen reader or keyboard navigation issues 3) Implementing ARIA patterns correctly 4) Reviewing color contrast and visual accessibility 5) Creating accessible forms or interactive components