Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 4 years ago.
Improve this question
I'm developing a lyric application for Mac and I want to add Spotify support to my app. I just need to retrieve currently playing track on spotify client for Mac and get notified if playing state has changed.
is there any API to use in my app for doing this?
To get notified when playing state has changed (which tells you the new track), you watch for a distributed notification called "com.spotify.client.PlaybackStateChanged". There are at least two other questions here asking how to do that, one of which has sample code, so try searching for that. (Or just fire up Notification Watcher and you can see them for yourself, and it should be easy to figure out how to write the code to handle them.)
If you want to check the current track manually (e.g., at startup), you can use the Spotify AppleScript interface (which of course you can also access via ScriptingBridge, appscript, etc.), like this:
tell application "Spotify"
name of current track
end tell
There are similar properties for the artist, etc. Fire up AppleScript Editor and open the Spotify Dictionary for full details.
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this question
When there is a new release with a version change, or any release that may cause deprecation, how are developers notified? is there an email list that we can sign up for?
I have been documenting this for almost 200 api's, some use twitter, some send alert emails, some rely on statuspage, admins who have created apps, and even some have no system at all. I am trying to find out how developers are notified when a new release to the evernote api is imminent.
That hasn't really happened, deprecated APIs have been kept around so far and not actually removed. We do make changes in sdks though and remove deprecated methods in newer versions, as well as add new methods.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 4 years ago.
Improve this question
For a school project our client wants us to create a ZigBee network either using the Texas instruments cc2531 or a XBee. We've got a CC2531 with some sensors from Cleode. In their program, named cleobee, everything works fine. The connection is automatically made, and we don't have to do anything else than turn on the sensors for the connection to be made.
Now we want to use the CC2531 to connect with the sensors without using the Cleode program. Is there a simple way to set up a network? Is there an API we can use? We've found zTool in which we can monitor the usage of the cc2531, but we don't really know what else we can do with it.
Also, we would like to connect an Olimex mod-zigbee-pir sensor with it. Can we do this in the same manner as with the other sensors?
Is there any software available that let's us do this?
If you donot want to use the Cleode program than you can implement the same thing yourself by making changes in the API provided by TI.
Ti has provided all the APIs and you can refer it in the Documents that comes along with Z-stack.
Also sample and Generic programs for zigbee networks are provided which you can modify it according to your requirement.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this question
I'm not an iOS developer, but I'm just trying to figure out whether it's possible to query the iOS native video player in a Cocoa Touch app at runtime, and say find out how much of the video has been played.
I also wondered whether the player exposes events, such as scrubbing, play start, play end, play pause etc.
Again, this is all for an Objective-c app, not a web app.
Not being an iOS developer, I had trouble trying to find this in Apple's documentation.
If anyone could point me to the appropriate article that would be great.
All you are trying to achieve should be possible with MPMoviePlayerController. If something is missing, there is a lower level API called AVFoundation.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 6 years ago.
Improve this question
Is there an API where I can search for a song, and then stream the preview of the song on my site?
Looked into Amazon MP3, but I can't seem to find an API for Amazon MP3.
Also looked into last.fm Track.Search api, but seems like the return value doesn't seem to give the actual filename. (i.e mp3 etc), which means I can't stream it on my site.
Please let me know if there are other different APIs I can use as well.
Thanks,
Tee
Hopefully you got sorted for this but just in case (and for future searchers)
EchoNest has a solid api with will give you 30 sec. track previews
for example:
http://developer.echonest.com/api/v4/song/search?api_key=N6E4NIOVYMTHNDM8J&format=json&results=1&artist=radiohead&title=karma%20police&bucket=id:7digital-US&bucket=audio_summary&bucket=tracks
Just a note that it uses 7digital so only tracks in there catalogs will have previews
Here's the link to the 7digital public API for track search
http://developer.7digital.com/resources/api-docs/catalogue-api#track/search
and here's track preview:
http://developer.7digital.com/resources/api-docs/media-delivery-api#clip/{trackId}
You'll need to register for an API key here:
http://access.7digital.com/partnerprogram
*In the interests of full disclosure I'll mention that I work for 7digital.
Amazon Associates has a "widget" that allows you to play the sample clips from their extensive MP3 library. However, I can't speak as to how flexible or programmable it is... but at least the link will get you started.
itunes has a search api and preview and album art... they have restrictions (ie, you have to put the "buy on iTunes" badge linking to the song near the preview)...
http://www.apple.com/itunes/affiliates/resources/documentation/itunes-store-web-service-search-api.html
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 4 years ago.
Improve this question
What is the best solution/API for this? On my site users upload image, tag then and more. Instead of displaying the normal page where it shows the image and info (date, desc, user comments, etc) I want it to go to the next/prev image. Preferably with preloading. This code could be done either in flash or javascript, but I would need a way to give the user a link so they can pass it to someone else to continue at the same point.
Another thing I would like to support is a 'gallery' mode where it displays thumbs of multiple images and allows scrolling through them.
Is there an API I should use or should I hand-roll gallery and slideshow code?
How about Gallery - gallery.menalto.com? Version 3 has only just been released, but version 2.3 is very stable and has an extensive API.
To do what you're after have a look at
http://gallery.menalto.com/apidoc/ItemAdd/UserInterface/ItemAddFromServer.html
for saving images from the server, and at
http://gallery.menalto.com/node/66940
http://codex.gallery2.org/Gallery2:GalleryEmbed:getImageBlock
for extracting it out again (although use "getBlock" rather than "getImageBlock")
Flickr seems to have a comprehensive API. (But I have no experience with it.)