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
Post a Comment