I am new to Swift and the APK environment and currently the app loads a playlist that I have given it. But how can I have the user select a song from the Spotify Search Service and have the app play the single track instead of playing through a playlist?
project link: https://drive.google.com/file/d/0Bx-U3vtX9ZWDSGtXRFdBekpWZkE/view?usp=sharing
Related
Require a video player that can play .ism/manifest files. Currently I'm using Azure Media Player.It works fine in browser but not in Mobile devices. Any other player which I can integrate with my Ionic app?
In order to prepare your video to android playback follow article http://mingfeiy.com/android-hls-playback-via-azure-media-services.
You should be able to have links with following format (additional strings added after *.ism/):
For HLS v4
http://htmlsamples.origin.mediaservices.windows.net/7bbf1b9d-83c0-4745-8e3d-169479671fd6/Tears.ism/Manifest(format=m3u8-aapl)
For HLS v3:
http://htmlsamples.origin.mediaservices.windows.net/7bbf1b9d-83c0-4745-8e3d-169479671fd6/Tears.ism/Manifest(format=m3u8-aapl-v3)
Opening web browser from you app with these formatted links should trigger playback.
There is ionic related question not specific to azure media services: Play Video in landscape Full Screen in Ionic App which might help you as well
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 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.
I'm trying to determine if an update to my Spotify application has gone live after submission.
Is there a way to inspect this value via the Spotify player? If not, how can I user the API to programmatically access this information so it can be displayed through my app?
In the bundle manager (Developer -> Show Bundle Manager) you can see what apps are available and see it's version number. There's also a "manifest" option but at least in my version of Spotify it shows nothing. However I guess seeing the version number is enough for you.
The newest version of the Spotify player (just went live today) now puts this information right at the top of the "Develop" menu.
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.