private
DisplayRequest dispRequest =
null
;
public
void
StartVideoPlayback()
{
if
(dispRequest ==
null
)
{
dispRequest =
new
DisplayRequest();
dispRequest.RequestActive();
rootPage.NotifyUser(
"Display request activated"
,
NotifyType.StatusMessage);
}
}
public
void
StopVideoPlayback()
{
if
(dispRequest !=
null
)
{
dispRequest.RequestRelease();
dispRequest =
null
;
rootPage.NotifyUser(
"Display request released"
,
NotifyType.StatusMessage);
}
}