Need some help for android issue

Hello, sorry, the question is not according to the book, but I can’t find answer or advice and decide to ask same here.
The problem is: I have several tv-boxes, working via wi-fi in different city points - show video ads. To check they are show video correctly, I decide to take screenshots with some interval and compare them. Ok, I take screenshot by this command:
adb shell screencap -p /sdcard/screen.png && adb pull /sdcard/screen.png
sometimes I get good screen shot:

but other time (> 95%) I get just alpha-blank screenshot -
All videos are play throught media player
`private MediaPlayer mMediaPlayer;
Android 4.2.2. Any ideas ?

I had the same problem, it was really hard to solve, I spent a lot of time figuring out how to fix it and i found a solution for this here veja aqui

Hello VenessaWright, Thanks for the solution, It is working Sir!!
Regards: Ethan_