MediaElement seems to disable lock screen when playing a video
Posted
by
CrossProduct
on Stack Overflow
See other posts from Stack Overflow
or by CrossProduct
Published on 2012-06-27T15:01:53Z
Indexed on
2012/06/28
9:16 UTC
Read the original article
Hit count: 260
I am working on an application that plays a video using the MediaElement component. Now, I would like that if the user is idle, the lock screen appears, as configured by the user in the Settings of the device.
If I don't play a video, the lock screen indeed appears. But, when a video is playing no lock screen appears. I cannot find any information on this.
Currently I set the idle detection modes like this:
PhoneApplicationService.Current.ApplicationIdleDetectionMode = IdleDetectionMode.Enabled;
PhoneApplicationService.Current.UserIdleDetectionMode = IdleDetectionMode.Enabled;
I am a bit lost now. The only solution I can think of is running a timer myself and stop the video playback after a certain time. (but there seems to be no API calls to receive the configured lock timeout.)
Any suggestions are welcome, thanks.
© Stack Overflow or respective owner