Windows 10锁定屏幕幻灯片从RSS不工作(RequestSetImageFeedAsync)
本文关键字:工作 RequestSetImageFeedAsync RSS 锁定 屏幕 幻灯片 Windows | 更新日期: 2023-09-27 18:05:42
我制作了一个应用程序,在这个应用程序中,我使用public static IAsyncOperation<SetImageFeedResult> RequestSetImageFeedAsync(Uri syndicationFeedUri)
方法来播放来自Windows 8外部RSS提要的锁屏幻灯片。我使用next 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.";
}
result总是等于SetImageFeedResult。成功
对于您的问题,似乎这种方法仅适用于windows 8.1
From Microsoft Docs:LockScreen.RequestSetImageFeedAsync(Uri)
注册要用作锁屏幻灯片的RSS图像提要。(仅限Windows 8.1)