从另一个Android应用程序控制Spotify应用程序的播放? [英] Control playback of the Spotify app from another Android app?

查看:153
本文介绍了从另一个Android应用程序控制Spotify应用程序的播放?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以从另一个Android应用程序中控制Spotify应用程序的播放?我只在寻找曲目跳过功能(向前和向后).

Is it possible to control playback of the Spotify app from within another Android app? I'm only looking for track skipping functionality (forward and backward).

我知道Spotify Android SDK,但似乎只允许跳过该SDK播放的曲目:

I'm aware of the Spotify Android SDK, but it seems to only allow skipping of tracks played by the SDK:

com.spotify.sdk.android.playback.NativeSpotifyException: Failed SpPlaybackSkipToPrev with  error code 14 (The operation is not supported if the device is not the active playback device)

为澄清起见,实际的Spotify应用和我自己的应用都在同一设备上运行

To clarify, both the actual Spotify app, and my own app are running on the same device

推荐答案

快速解答-不,这是不可能的.

Quick answer - No, this isn't possible.

这篇关于从另一个Android应用程序控制Spotify应用程序的播放?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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