How it works
Screen monitoring uses your browser’s native screen capture API combined with AI vision models to continuously analyze your screen for quiz questions.Start screen capture
Click the “Start Monitoring” button and select which screen or window to share when prompted by your browser.
Real-time analysis
Screen Answerer captures frames every 5 seconds and sends them to the Gemini AI model for analysis.
Question detection
The AI model determines if a quiz question is present in the captured frame using vision recognition.
Starting screen monitoring
Before you can monitor your screen, make sure you’ve configured your API key in settings.Screen monitoring requires permission to access your screen. Your browser will prompt you to select which screen or window to share.
- Navigate to the Screen Monitor section
- Click Start Monitoring
- Select the screen or window containing your quiz
- The status will change to “Active” and monitoring begins
Real-time preview
While monitoring is active, you’ll see:- Live preview: A thumbnail of the most recent captured frame
- Status indicator: Shows whether monitoring is active or inactive
- Questions counter: Tracks how many questions have been detected
Why does the preview update every 5 seconds?
Why does the preview update every 5 seconds?
Screen Answerer captures frames at 5-second intervals to balance responsiveness with API quota usage. This prevents excessive API calls while still providing timely answers to quiz questions.
Stopping monitoring
You can stop screen monitoring at any time:- Click the Stop Monitoring button, or
- Close the screen sharing prompt in your browser
Browser compatibility
Screen monitoring works best with modern browsers that support thegetDisplayMedia API:
Chrome
Full support with optimal performance
Firefox
Full support with adjusted frame rates
Edge
Supported but not recommended
Safari
Limited support, may not work properly
Rate limiting and quotas
Screen monitoring is designed to respect API rate limits:- 5-second intervals between captures minimize API usage
- Built-in rate limiting prevents quota exhaustion (50 calls per minute)
- Exponential backoff automatically retries failed requests
Troubleshooting
Monitoring won't start
Monitoring won't start
Make sure you’ve granted screen sharing permission when prompted. Check that your API key is configured correctly in settings.
Questions aren't being detected
Questions aren't being detected
Ensure the quiz question is clearly visible on screen. The AI model needs to see the full question text to detect it. Try increasing the window size or adjusting the screen position.
Too many rate limit errors
Too many rate limit errors
The monitoring interval is set to 5 seconds to prevent rate limiting. If you still encounter errors, check your API quota in the Google AI Studio dashboard.
Technical implementation
Screen monitoring leverages the browser’s MediaDevices API:/monitor_screen endpoint (server.js:319), which:
- Validates the API key
- Applies rate limiting per client IP
- Uses the
detectQuizQuestion()function to check for questions - If detected, calls
processImageQuestion()to generate the answer - Returns the answer formatted as markdown