Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有没有办法使用Spotify API在歌曲播放一段时间后跳到下一首歌曲?
我似乎找不到任何可以拉出歌曲播放时间的文档。
谢谢!
播放器具有position以毫秒为单位提供当前播放位置的属性(文档已损坏)。
position
观察播放器对象EVENT.CHANGE可以看到曲目何时开始/停止播放,并且可以适当地计时。
EVENT.CHANGE