腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
圈层
工具
MCP广场
文章/答案/技术大牛
搜索
搜索
关闭
发布
搜索
关闭
文章
问答
(130)
视频
开发者手册
清单
用户
专栏
沙龙
全部问答
原创问答
Stack Exchange问答
更多筛选
回答情况:
全部
有回答
回答已采纳
提问时间:
不限
一周内
一月内
三月内
一年内
问题标签:
未找到与 相关的标签
筛选
重置
1
回答
防止AVPlayerController劫持
MPRemoteCommandCenter
然后,我用
MPRemoteCommandCenter
设置锁定屏幕和控制中心的控件,指定当用户与控件交互时音频播放器应该启动或暂停。TL;博士 我有音频和视频播放器,只希望音频播放器能够在后台播放,但出于某种原因,来自
MPRemoteCommandCenter
的控件优先考虑视频播放器,我希望更改/禁用这种行为。
浏览 0
提问于2018-12-06
得票数 6
回答已采纳
1
回答
MPRemoteCommandCenter
的问题
我对
MPRemoteCommandCenter
有两个问题: let commandCenter =
MPRemoteCommandCenter
.shared
浏览 5
提问于2017-05-28
得票数 1
回答已采纳
1
回答
MPRemoteCommandCenter
4中的错误
我正在尝试设置我的应用程序使用
MPRemoteCommandCenter
。我从文档编程指南中获得了这个示例。我导入了AVFoundation,甚至尝试导入AVKIT,我得到了未解析标识符'
MPRemoteCommandCenter
'的错误用法。当我创建
MPRemoteCommandCenter
.shared()的实例时。任何帮助都将不胜感激。func setupRemoteTransportControls() { // Get the shared
MPRemoteCommandC
浏览 0
修改于2018-04-10
得票数 9
回答已采纳
1
回答
MPRemoteCommandCenter
禁用了所有控件
我也试过这个:[[
MPRemoteCommandCenter
sharedCommandCenter].pauseCommand setEnabled:YES];[[
MPRemoteCommandCenter
sh
浏览 1
修改于2019-05-03
得票数 0
回答已采纳
1
回答
在“`
MPRemoteCommandCenter
`”中使用“`AVSpeechSynthesizer`”
用户将使用AirPods控制读取,所以我需要使用
MPRemoteCommandCenter
。我更喜欢在后台模式下直接使用AVSpeechSynthesizer.speak(_:),并通过
MPRemoteCommandCenter
命令激活它。谢谢!
浏览 2
提问于2021-02-24
得票数 0
回答已采纳
1
回答
MPRemoteCommandCenter
暂停/播放按钮不切换?
我有问题,让播放和暂停按钮切换在
MPRemoteCommandCenter
。由于任何原因,音频和事件都将正常工作,但是命令中心不会将play按钮更改为暂停按钮。这是我的密码。- (void)setupMPRemoteCommandCenter{
MPRemoteCommandCenter
*commandCenter = [
MPRemoteCommandCenter
浏览 18
修改于2015-07-17
得票数 13
回答已采纳
1
回答
MPRemoteCommandCenter
SomeTimes没有出现
remoteCommandManager = RemoteCommandManager() // Always enable playback commands in
MPRemoteCommandCenter
浏览 3
修改于2018-06-14
得票数 0
1
回答
MPRemoteCommandCenter
不支持蓝牙免提
MPRemoteCommandCenter
.shared().nextTrackCommand.isEnabled = true
MPRemoteCommandCenter
.shared().nextTrackCommand.addTarget(self, action: #selector(playCommand))
MPRemoteCommandCenter
.shared().prev
浏览 4
提问于2017-09-19
得票数 0
1
回答
使用MPMusicPlayerController时无法修改
MPRemoteCommandCenter
操作
如果用户在锁定屏幕(
MPRemoteCommandCenter
)上按下某个操作,currentPlaybackRate将重置为1。这是因为事件直接发送到系统音乐播放器,而不是应用程序控制器。为了将currentPlaybackRate设置为适当的值,我尝试覆盖
MPRemoteCommandCenter
事件: super.viewDidLoadMPMusicPlayerControllerPlaybackStateDidChangeNotification, object: player)
浏览 8
修改于2015-03-22
得票数 3
2
回答
MPRemoteCommandCenter
对MPMusicPlayerController不做任何事情
我已经启用了应用程序的背景音频将在后台播放,并使用类似于下面显示的代码启用了一些
MPRemoteCommandCenter
命令。下面的代码基于我在文档和此中看到的内容 MPRemoteCommand我尝试过调用[[UIApplication sharedApplication] beginReceivingRemoteControlEvents];,但据我所知,这并不是真正用于
M
浏览 0
修改于2017-05-23
得票数 7
1
回答
Swift
MPRemoteCommandCenter
nextTrackCommand被调用3次
我正在使用
MPRemoteCommandCenter
在我的音乐广播应用程序中更改歌曲。但当我按下锁定屏幕上的下一首曲目按钮时,它会跳3步。下面是我的代码: let commandCenter =
MPRemoteCommandCenter
.shared
浏览 30
修改于2019-07-21
得票数 0
回答已采纳
1
回答
MPRemoteCommandCenter
未检测到下一轨道命令
MPRemoteCommandCenter
*commandCenter = [
MPRemoteCommandCenter
sharedCommandCenter]; [commandCenter.nextTrackCommand
浏览 2
提问于2015-05-27
得票数 0
2
回答
更新
MPRemoteCommandCenter
播放/暂停按钮
我用
MPRemoteCommandCenter
设置了远程控制命令,MPNowPlayingInfoCenter设置了信息,使当前播放的歌曲显示在控制中心,并响应控制中心按钮按下或耳机按钮按下。是否有一种方法可以更新MPNowPlayingInfoCenter
MPRemoteCommandCenter
或
MPRemoteCommandCenter
状态,以便控制中心知道这首歌暂停了?
浏览 1
修改于2020-06-20
得票数 7
1
回答
如何从通知中心删除
MPRemoteCommandCenter
如何从通知中心删除
MPRemoteCommandCenter
.shared()。我尝试过此代码,但只有命令和操作处于禁用状态。我需要从通知中心删除完整的通知。func removeCommanCenter() { commandCenter.previousTrackCommand.isEnabled
浏览 101
修改于2019-09-13
得票数 0
回答已采纳
1
回答
从
MPRemoteCommandCenter
中丢失“现在玩”状态
我正在为iOS创建一个应用程序,该应用程序可以使用
MPRemoteCommandCenter
进行控制。这个很好用。但是,当我将类别更改为AVAudioSessionCategoryPlayback时,我不会像预期的那样接收来自
MPRemoteCommandCenter
的事件。
浏览 2
提问于2015-08-29
得票数 3
回答已采纳
2
回答
MPRemoteCommandCenter
播放/触摸时暂停闪烁
我正在开发用Swift编写的音乐播放器应用程序,使用AVPlayer的音频流,一切都很好 MPNowPlayingInfoCenter.default().nowPlayingInfo = info
MPRemoteCommandCenter
实现如下:
浏览 1
提问于2018-12-31
得票数 2
回答已采纳
1
回答
让
MPRemoteCommandCenter
.sharedCommandCenter().nextTrackCommand在UIViewController中工作
MPRemoteCommandCenter
.sharedCommandCenter().nextTrackCommand.addTarget(self, action: "emptyForAudio")
MPRemoteCommandCenter
.sharedCommandCenter().nextTrackCommand.enabled = true;override
浏览 1
提问于2015-08-21
得票数 0
2
回答
MPRemoteCommandCenter
在iOS中多次调用处理程序
MPRemoteCommandCenter
多次调用处理程序块,并导致对选择器方法的不必要调用。下面是代码片段: [commandCenter.nextTrackCommand
浏览 3
修改于2018-12-10
得票数 14
1
回答
获取tap事件锁定屏幕控件(
MPRemoteCommandCenter
)
我已经使用
MPRemoteCommandCenter
在锁屏上获得访问权限。我可以通过以下方式获得所有访问权限: let commandCenter =
MPRemoteCommandCenter
.shared() commandCenter.pauseCommand.addTarget
浏览 23
提问于2019-02-28
得票数 2
1
回答
MPRemoteCommandCenter
错误:曲目同时播放多次
我在使用
MPRemoteCommandCenter
时遇到了问题。例如:在TableViewController中,我点击手机,然后进入AudioPlayerViewController,下一步我锁定设备,然后用
MPRemoteCommandCenter
控制我的音乐-} func setupMediaPlayerNotificationView() { let commandCenter =
MPRemoteCommandCenter
.shared
浏览 12
提问于2021-06-01
得票数 0
回答已采纳
第 2 页
第 3 页
第 4 页
第 5 页
第 6 页
第 7 页
点击加载更多
领券