【问题标题】:Play lock screen slideshow in Windows 8 from RSS (RequestSetImageFeedAsync error)在 Windows 8 中从 RSS 播放锁定屏幕幻灯片(RequestSetImageFeedAsync 错误)
【发布时间】:2015-05-14 11:36:36
【问题描述】:

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

这是我的代码:

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

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

【问题讨论】:

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


    【解决方案1】:

    我在 Windows 8.1 上运行了您的代码,并且必须说它可以正常工作 而不会引发任何错误。它要求更改我的锁定屏幕的权限,并且必须选择允许

    【讨论】:

    • 这很有趣。你检查幻灯片播放了吗?
    • 是的,它玩得很好
    • 感谢您的回答。我将在另一台 PC 上检查我的代码。
    • 我基本上创建了一个应用程序,将您的代码注释掉 AddImageFeedScenarioOutputText.Text 行,因为没有创建文本块/文本框,然后在应用程序内部运行它请求许可,当我允许时,使用断点得到成功结果。
    • 我的电脑也有激活的 Windows 8.1 许可证。除非窗口被激活,否则锁屏功能通常会被禁用
    猜你喜欢
    • 2015-07-21
    • 2015-10-22
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-09-27
    • 1970-01-01
    • 1970-01-01
    • 2012-04-07
    相关资源
    最近更新 更多