Log in or register to post comments

screen auto lock while playing video

September 25, 2013 - 9:07pm #1

Hi,

    My app could play the  video when carema focus the trackable picture, but after the video played one minutes, the handphone's screen will lock auto....then

the screen is black. How could I solve this problem?

thanks all~~~

screen auto lock while playing video

September 26, 2013 - 7:39pm #8

Thanks a lot, I will try it~~

screen auto lock while playing video

September 26, 2013 - 2:59am #7

Ok, 

if you open the file FullscreenPlayback.java, could you add these lines in the OnCreate() method ?

getWindow().setFlags(
            WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON,
            WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);

And try again ?

 

screen auto lock while playing video

September 26, 2013 - 1:58am #6

Dear AlessandroB,

 

     yes, the video play in full screen mode

screen auto lock while playing video

September 26, 2013 - 1:57am #5

yes

screen auto lock while playing video

September 26, 2013 - 1:48am #4

Does it happen in fullscreen mode or when playing on texture ?

 

screen auto lock while playing video

September 26, 2013 - 12:15am #3

Hi , AlessandroB

  yes, I modified VideoPlayback sample to play my video. There is no error, just the video has three minutes content but  the screen

is black(lock screen )  after played one minute.

Thanks a lot

screen auto lock while playing video

September 26, 2013 - 12:05am #2

Hi,

is this occurring with the VideoPlayback sample ? or just with your own App ?

just wondering if it could be that you're using a too large video which is taken too much system memory / resources...

Also, do you see any error messages in the Logs ?

 

Log in or register to post comments