MediaElement windows phone 8.1 rt -


i have problem mediaelement. assume play video mediaelement, , phone locks screen after 1 minute. so, after 1 minute, mediaelement stops playing video , phone on lock screen. want play video normally.

how can that?

the behaviour of mediaelement design. there's no playback supported behind lock screen.
question isn't clear, think want prevent phone locking while video being played. so, must create displayrequest object @ global scope , set active when start playback.

if (disprequest == null)  {             disprequest = new displayrequest();     disprequest.requestactive();      rootpage.notifyuser("display request activated", notifytype.statusmessage);         } 

also, make sure call requestrelease() once playback finished. can find more details @ msdn here.


Comments

Popular posts from this blog

c++ - Delete matches in OpenCV (Keypoints and descriptors) -

java - Could not locate OpenAL library -

sorting - opencl Bitonic sort with 64 bits keys -