在 Windows 8 中从 RSS 播放锁屏幻灯片(RequestSetImageFeedAsync 错误)

Play lock screen slideshow in Windows 8 from RSS (RequestSetImageFeedAsync error)

我正在尝试使用方法 public static IAsyncOperation<SetImageFeedResult> RequestSetImageFeedAsync(Uri syndicationFeedUri) 从 Windows 8 中的外部 Uri 播放锁屏幻灯片。 当我设置此 https://urzagatherer.azure-mobile.net/api/wallpapers RSS Uri from this tutorial http://blogs.msdn.com/b/eternalcoding/archive/2013/11/13/what-a-cool-feature-controling-the-windows-8-1-lock-screen-slide-show.aspx 并打开 "Change PC Settings" 时,我总是看到消息:"You need more than one picture to show in your slideshow",如下图所示,幻灯片放映不播放:

这是我的代码:

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."; 
}

我的解决方案有什么问题?

我 运行 你的代码在 windows 8.1 上并且必须说它的工作 没有抛出任何错误。它要求获得更改我的锁屏的许可,并且必须 select 允许