我制作了应用程序,其中我使用方法public static IAsyncOperation<SetImageFeedResult> RequestSetImageFeedAsync(Uri syndicationFeedUri)
在Windows 8中从外部RSS提要播放锁定屏幕幻灯片。我使用下一个Uri https://urzagatherer.azure-mobile.net/api/wallpapers,它在Windows 8中完美运行(8.1 )。但是,当我在Windows 10中运行我的应用程序并设置相同的Uri时,锁定屏幕幻灯片显示无法播放。有人能告诉我,问题是什么?
我使用以下代码:
SetImageFeedResult result = await LockScreen.RequestSetImageFeedAsync(new Uri("https://urzagatherer.azure-mobile.net/api/wallpapers"));
if (result == SetImageFeedResult.Success)
{
AddImageFeedScenarioOutputText.Text = "Called RequestSetImageFeedAsync: the specified URL was set as the default.";
}
else if (result == SetImageFeedResult.ChangeDisabled)
{
AddImageFeedScenarioOutputText.Text = "Called RequestSetImageFeedAsync: call succeeded but group policy has the lock screen image slide show turned off.";
}
else // (result == SetImageFeedResult.UserCanceled)
{
AddImageFeedScenarioOutputText.Text = "Called RequestSetImageFeedAsync: the specified URL was not set as the default.";
}
结果总是等于SetImageFeedResult.Success