如何在iOS Lock Screen控制面板中启用音频滑块? [英] How to enable audio scrubber in iOS Lock Screen control panel?

查看:264
本文介绍了如何在iOS Lock Screen控制面板中启用音频滑块?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有以下字典用于MPNowPlayingInfoCenter

I have the following dictionary for MPNowPlayingInfoCenter

@{MPMediaItemPropertyAlbumTitle: @"First Title",
                                MPMediaItemPropertyArtwork: [[MPMediaItemArtwork alloc] initWithImage:[UIImage imageNamed:@"Album-Cover.jpg"]],
                                MPMediaItemPropertyPlaybackDuration:[NSNumber numberWithDouble:self.storyAudioPlayer.duration],
                                MPNowPlayingInfoPropertyElapsedPlaybackTime:[NSNumber numberWithDouble:self.storyAudioPlayer.currentTime],
                                MPNowPlayingInfoPropertyPlaybackRate:@1.0
                                }

其他工作正常,但我无法使用滑块寻找歌曲。如图所示。我错过了什么参数?

Everything else is working fine but I can't seek songs using the slider. As shown in the image. What parameter am I missing?

推荐答案

你做不到。您可以向Apple提交错误报告,以便他们有一天能够实现它。

You can't. You could file a bug report to Apple so that they implement it someday.

编辑:现在可以从iOS 9开始了

It's now possible to do it since iOS 9

这篇关于如何在iOS Lock Screen控制面板中启用音频滑块?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆