Change volume with spotify App API

那年仲夏 提交于 2019-12-10 06:13:22

问题


I was wondering if someone has succefully managed to change the volume with the spotify app API

I can without hassle change the playstate with player.playing = true; but player.volume=0.5 will not work. Must I add a observer for this?


回答1:


The documentation for the Player object does indeed say that you can set volume as a float from 0.0 to 1.0.

https://developer.spotify.com/technologies/apps/docs/beta/f19ff300f8.html

It's possible you're only allowed to change the volume if your app initiated the playback that's occurring.



来源:https://stackoverflow.com/questions/10822979/change-volume-with-spotify-app-api

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!