mirror of
https://github.com/jwilsson/spotify-web-api-php.git
synced 2026-04-27 07:55:49 +03:00
[GH-ISSUE #164] Web Playback SDK To Play Songs In Browser #106
Labels
No labels
bug
docs
enhancement
enhancement
enhancement
feedback wanted
good first issue
help wanted
help wanted
help wanted
invalid
pull-request
question
question
upstream
upstream
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/spotify-web-api-php#106
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @mohammedjammeh on GitHub (Jul 29, 2019).
Original GitHub issue: https://github.com/jwilsson/spotify-web-api-php/issues/164
Hey there,
I was wondering if this API offers the feature to control Spotify's Web Playback SDK Quick Start.
I looked at the Controlling User Playback section but it seems like it only shows the controls for the playback.
I got the SDK working with JavaScript but it's not perfect. Also, it does say in the documentation that
To play a track inside your browser, connect to the Web Playback SDK Quick Start Player player in another Spotify clientso I'm wondering if I just have to create another client to make it work properly.Anyway, I would appreciate it if you could clarity this.
Thank you.
@jwilsson commented on GitHub (Jul 29, 2019):
Hi!
I'm afraid I can't be of much assistance. I've never used the Web Playback SDK but after looking through the Quick Start real quick it sounds like you should be able to connect to it through the methods listed on the Controlling User Playback page.
The
$api->getMyCurrentPlaybackInfo()should give you the ID of your Web Playback SDK player and then calling$api->play()will hopefully start playing something on your web page.@mohammedjammeh commented on GitHub (Aug 3, 2019):
Not a problem, that's absolutely fine. I will keep playing around with it and should be able to figure it out. Also, thanks for creating this package. It has been very useful for my university and personal projects. I will go ahead and close this ticket for now.
@shahzeb1 commented on GitHub (Dec 11, 2019):
You can control the web player by:
deviceIdfor the web front end::play()api call with the device set to the browser