|
Posted by Vikky on June 4, 2008, 2:09 am
Please log in for more thread options
While trying to get Power notifications for Display OFF using
RequestPowerNotifications() API, it returns PowerBroadcast notification i.e.
POWER_BROADCAST structure, which in turn gives System power flag event
"POWER_STATE_ON".
I am able to receive POWER_STATE_ON notification after the specified time
which is set in "Settings->Power Management->Display Timeout"
This notification should ideally not arrive when Video file is played in
Windows Media Player according to Windows Mobile 6 SDK documentation. But,
even during video playback the POWER_STATE_ON event is received because of
which my application is getting effected.
The event when checked on a Pocket PC device, is received only after the
Video file has been played completely. Therefore, my application behaves
correctly in this case.
Now my question is, even though POWER_STATE_ON event is received even during
a video playback, the device does not act on it. Isn't this weird? Or is
there any workaround which allows the player to continue playing by
overriding this event on smartphone?
|