如何在锁屏界面展示当前正在播放的内容?
Asked on 03/13/2025
1 search
在WWDC 2024中,Apple并没有直接讨论如何在锁屏界面展示当前正在播放的内容。然而,相关的内容可以在“Extend your app’s controls across the system”这一会话中找到。在这个会话中,提到可以通过系统控件在锁屏界面显示活动信息,例如计时器的剩余时间。这表明可以通过系统控件的扩展来实现某些信息在锁屏界面的展示。
如果你对如何在锁屏界面展示特定内容有兴趣,可以查看Extend your app’s controls across the system (02:13)这一会话,了解如何利用系统控件来实现类似的功能。

Enhance ad experiences with HLS interstitials
Explore how HLS Interstitials can help you seamlessly insert advertisements into your HLS content. We’ll also show you how to use integrated timeline to tune your UI experience and build SharePlay for interstitials.

Enhance the immersion of media viewing in custom environments
Extend your media viewing experience using Reality Composer Pro components like Docking Region, Reverb, and Virtual Environment Probe. Find out how to further enhance immersion using Reflections, Tint Surroundings Effect, SharePlay, and the Immersive Environment Picker.

Extend your app’s controls across the system
Bring your app’s controls to Control Center, the Lock Screen, and beyond. Learn how you can use WidgetKit to extend your app’s controls to the system experience. We’ll cover how you can to build a control, tailor its appearance, and make it configurable.