通过jQuery操作Spotify播放按钮 [英] Manipulating Spotify Play Button via jQuery

查看:107
本文介绍了通过jQuery操作Spotify播放按钮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以通过jQuery操作Spotify播放按钮?例如,暂停和播放,更改歌曲等?我尝试使用.contents()修改播放按钮"所在的iframe的内容,但是运气不佳.有什么想法吗?

Is it possible to manipulate the Spotify Play Button via jQuery? For instance, pausing and playing, changing the song, etc? I've tried to modify the contents of the iframe in which the Play Button resides by using .contents() but haven't had much luck. Any ideas?

谢谢

推荐答案

不幸的是,Spotify播放按钮不会公开JS Api来控制播放.

Unfortunately, the Spotify Play Button doesn't expose a JS Api to control playback.

这篇关于通过jQuery操作Spotify播放按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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