I have written a small player application which plays video files. Its working fine except one thing. When the application is playing the media file (video file), after some time the visibility of the video is going to in sleep mode (I mean the screen is going to in blank screen nothing is visible). when only we press some key then the video is getting visible.
What should I do to avoid this situation (going to in blank screen when playing video file)?