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

时间:2015-05-14 11:36:37

标签: c# windows-8 windows-8.1 slideshow lockscreen

我尝试使用方法public static IAsyncOperation<SetImageFeedResult> RequestSetImageFeedAsync(Uri syndicationFeedUri)在Windows 8中从外部Uri播放锁定屏幕幻灯片。 当我从本教程https://urzagatherer.azure-mobile.net/api/wallpapers设置此http://blogs.msdn.com/b/eternalcoding/archive/2013/11/13/what-a-cool-feature-controling-the-windows-8-1-lock-screen-slide-show.aspx RSS Uri,并打开&#34;更改电脑设置&#34;时,我总是看到消息:&#34;您需要显​​示多张图片在幻灯片中&#34;,如下图所示,幻灯片显示不播放:enter image description here

这是我的代码:

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

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

1 个答案:

答案 0 :(得分:0)

我在Windows 8.1上运行了你的代码,并且必须说它的工作perfectly而不会抛出任何错误。它要求允许更改我的锁屏,并且必须选择允许