diff --git a/assets/js/ui-controls.js b/assets/js/ui-controls.js index 287af21..54e6255 100644 --- a/assets/js/ui-controls.js +++ b/assets/js/ui-controls.js @@ -473,6 +473,9 @@ const currentTime = AppState.player.currentTime(); AppState.player.currentTime(currentTime + 10); // Skip forward 10 seconds showToast('Skipped forward 10s', 1000); + if (window.ScreenReader) { + ScreenReader.statusUpdate('video', 'skipped forward 10 seconds', 'seek'); + } } } else { // Swipe right - seek backward @@ -480,6 +483,9 @@ const currentTime = AppState.player.currentTime(); AppState.player.currentTime(Math.max(0, currentTime - 10)); // Skip back 10 seconds showToast('Skipped back 10s', 1000); + if (window.ScreenReader) { + ScreenReader.statusUpdate('video', 'skipped back 10 seconds', 'seek'); + } } } } diff --git a/screen-reader-test.html b/screen-reader-test.html new file mode 100644 index 0000000..51386a3 --- /dev/null +++ b/screen-reader-test.html @@ -0,0 +1,390 @@ + + +
+ + +This test validates the ARIA live regions and screen reader announcements implementation for the Dodgers Stream Theater application.
+ + + + + + + + + + +Test announcements for different stream states.
+ + + + + +Test announcements for connection state changes.
+ + + + +Test announcements for viewer count changes (threshold-based to prevent spam).
+ + + + + +Test announcements for admin actions and system notifications.
+ + + + +Test announcements for batch message loading.
+ + + +Test announcements for form validation feedback.
+ + + + +Test announcements for activity feed updates.
+ + + +Test announcements for status updates (uptime, quality, etc.).
+ + + + +Total Tests Run: 0
+Passed: 0
+Failed: 0
+Success Rate: 0%
+