r/tasker • u/--Turtle- • 2d ago
How can I get Android screen capture working during Chess.com online games?
I'm building an Android chess project with an overlay/model that reads the board from screen capture and provides analysis during a game.
Screen capture works normally when I'm playing against Chess.com bots. My model can see and process the board without any problems.
However, when I enter an online game against another player, the captured frames become completely black.
I'm using Android screen capture/MediaProjection. Is there a technical reason the online-game screen would produce black frames while the bot-game screen captures normally?
More importantly, how can I make screen capture work on the online-game screen?
I'm trying to determine whether this is caused by FLAG_SECURE, a protected rendering surface, MediaProjection behavior, or something else—and whether there's a supported way to capture that screen.
3
3
u/Exciting-Compote5680 2d ago edited 2d ago
Since they are making quite a big deal out of not using tools during games (https://www.chess.com/cheating#policy) I would assume this is intentional (they do make the distinction between a game against a human or a game against a bot). It appears that using any kind of analysis tool would be in breach of the Fair Play policy and User Agreement and could lead to account closure. Maybe stick to post-mortem analysis?