(iOS)应用程序是否有办法打开iTunes音乐播放器应用程序(最好直接进入正在播放的屏幕)? [英] (iOS) Is there a way for an app to open the iTunes music player app (preferably going straight to the Now Playing screen)?

查看:118
本文介绍了(iOS)应用程序是否有办法打开iTunes音乐播放器应用程序(最好直接进入正在播放的屏幕)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望能够在点击按钮时从我的应用程序启动iTunes应用程序(请注意,我的意思是实际的音乐播放器,而不是iTunes Store或App Store)。我希望它能直接进入正在播放的屏幕。有没有办法实现这个目标?

I would like to be able to launch the iTunes app from my app when I tap a button (note that I mean the actual music player, NOT the iTunes Store or App Store). Preferably I'd like it to go straight to the Now Playing screen. Is there any way to accomplish this?

推荐答案

是的,可以将iTunes音乐播放器打开到正在播放屏幕使用 music:// URL方案。在阅读这篇文章如何快速阅读时,偶然发现了这一点使用Siri启动应用程序。

Yes, it is possible to open the iTunes music player to the "now playing" screen using the music:// URL scheme. Found this out rather incidentally while reading this post on how to quickly launch apps using Siri.

此外,如果您需要回答我可以使用网址打开应用程序X这一问题,您可能会发现这些网站很方便吗?

Also, here are a few sites that you might find handy if you ever need to answer the question "Can I open Application X with a url?"


  • handleOpenURL - 可搜索的数据库接受URL的iOS应用程序(以及它们采用的URL方案)。您可以在此处提交您的应用。

  • Adrian Kosmaczewski的Wiki 列出了不少iOS应用网址计划也是如此。

  • 应用查找博客有更多。

    • handleOpenURL - a searchable database of iOS apps that accept URLs (and the URL schemes they take). You can submit your apps here.
    • Adrian Kosmaczewski's Wiki lists quite a few iOS app url schemes as well.
    • app lookup blog has more.

      这篇关于(iOS)应用程序是否有办法打开iTunes音乐播放器应用程序(最好直接进入正在播放的屏幕)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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