Automatic max brightness when playing.

Android has an API for screen brightness. I use a gallery app called QuickPic and my favorite feature in it is a setting that automatically turns the brightness to maximum when a photo goes fullscreen. When the app returns to the index screen, brightness goes back to whatever it was before. It would be a killer feature for the Android app to go max brightness when playing content, then return to the previous level when playback stops.