I have put together a web app that creates a list of tracks that can be played in Spotify using a spotify:trackset link, as suggested in https://stackoverflow.com/a/12218041/51034.
When following the link on my iPhone, it switches to the Spotify app, but then I get an error claiming that it can't open this type of link on the device.
Is there any other way to link to a set of tracks on a mobile device?
The Spotify iOS client doesn't support tracksets at the moment — the only way to get a list of tracks into the client is via a playlist.
Related
So I was taking a look at the spotify web api and it apparently allows you to play a preview of the song, but I was wondering if there is any way to play the full spotify song without having to open up the official spotify web player or desktop app.
Thanks
Update: There is a now a way to play full tracks! Read more at Spotify's Developer site, and #arirawr's answer to this question.
Previous answer: No, there's currently no way to play the full song using the Web API. If you want full tracks to be playable from a website, you can use the Spotify Play Button. If you want to build a mobile application, you can do playback of full tracks using the Android and/or iOS SDK.
Update from the future: there is now a way to play full tracks in the web: https://beta.developer.spotify.com/documentation/web-playback-sdk/
The Web Playback SDK is client-side JavaScript library which allows you to create a new player in Spotify Connect and play any audio track from Spotify in the browser via Encrypted Media Extensions. It’s the same technology we use to power our Web Player experience.
Some things you can do with the Web Playback SDK:
Create a new player in Spotify Connect
Stream an audio track in supported browsers
Get metadata for the current track
Get metadata about the user’s listening session
Control local playback (pause, resume, volume, etc)
I am doing a sender and receiver app for our site using Chrome API, currently when user wants to connect chromecast, its opening extension with device list, but in youtube its showing right there..
i am unable to get receiver list when i initiate chromecast sender app, all i am getting is device available or not, there are some old examples which uses cast.Api.addReceiverListener() to get the list of available devices.. but currently its not working and there seems to be no other option to do it..
i can see youtube and netflix are doing it though
thank you.
This is not officially supported in the current Chrome API. YouTube is likely using undocumented features or other DIAL functionality.
This might be of interest: https://github.com/jloutsenhizer/CR-Cast/wiki/Chromecast-Implementation-Documentation-WIP
I want to write a google chrome extension that allows the user to play/pause Spotify desktop player from their chrome.
Is there an API for this? A REST API that routes the request through Spotify servers to the desktop player may have a little delay but better than nothing.
Any ideas?
PS. I don't want to control the web player and Remote control API for Spotify? this not my answer
This is the first time I've ever seen a button like this (see right side). Clicking on that button launches Spotify. How is Spotify able to do this for their emails? Can this be done with other applications right now?
Disclaimer: I am a Spotify employee, but I haven't worked on this feature personally.
Google recently added support for markup that lets you embed interactive actions in your messages. You can see the blog post about this or the developer reference. The basic concept is that you embed some structured JSON data in your message, as in this example.
We embed markup in our notification emails that links to the Spotify Open site. For example, here's a link for Passenger — Holes: http://open.spotify.com/track/33lol6G1GUj0d3DyE1QzLw
If you have the Spotify desktop app installed, a redirect on that page to a spotify:track: URI will open the linked track in the desktop.
I would say that it is probably either a feature of Gmail or Spotify has installed some kind of browser plugin that inserts this button onto any page that it wants.
Just like torrents, browsers can associate certain header types with specific programs for example torrents use the magnet:// url which the browser associates with an installed bit torrent client.
So I would assume that this button launches a url like spotify://this-is-a-song-name-987897/ which launches the Spotify program on your computer.
I'm current building a spotify playlist app. There are currently multiple playlists that surface on one page, but when a user loads a playlist, I'd like to update the one subscribe button on the page with the playlist that's currently playing.
I'm able to use the player model to determine the currently playing track. What's the best way to do the same for the playlist?
Unfortunately, at the moment user playlists aren't accessible through the Spotify Apps API unless the user directly provides them to you by dropping them on your application. This includes seeing which playlist is currently playing, if any.