473,406 Members | 2,698 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Detecting playing song

17
I'm thinking of making a program which must detect when a song played in, for example, iTunes. Whenever a new song is playing, either if a song has ended and another one start or if the user choose to play another song, I want my program to detect that and tell the user which artist, album and song name it is, maybe using ID3. Is there any way to do that?

Thanks in advance,
Saser.

Oh, and I'm not asking for code, but for ideas of how it would work.
Oct 30 '09 #1
5 3166
GaryTexmo
1,501 Expert 1GB
To be honest, I'm not sure if this is an "ok" thing. The only way I could think of would be to basically hook into iTunes and get the data from there, but I'm not sure how legal it is. I know for games, it's basically cheating, but sometimes programs provide an API for people to write 3rd party plugins.

You might want to do more research to find out what's legal or not.

I don't really see how you could do it generically though... each program would handle things differently in different data structures.

Heh, another option without the legal gray area would be like that nifty iPhone app that "listens" to a song and tells you what it is. Your program could "listen" to the output of your speakers and say what the song is :D
Oct 30 '09 #2
Saser
17
I don't think it's an illegal thing. I mean, somehow Windows Live Messenger catches up what you're listening to, even in iTunes. How does it do to catch the data?

And for that iPhone app, I don't think so. :P
Oct 30 '09 #3
GaryTexmo
1,501 Expert 1GB
I didn't know MSN did it with iTunes, I just knew it did it with Windows Media Player. Since WMP and MSN are both Microsoft, I figured they either have an API, or did their own little trick :)

If MSN reads both, there's a fair chance there's an API you can make use of. A quick google search turned up nothing useful for me though.
Oct 30 '09 #4
Fr33dan
57
I believe iTunes has an SDK that includes a COM interface you can use to get that kind of information. Although you need to register on their development connection site to get it.
Oct 31 '09 #5
Saser
17
I downloaded that SDK, but I don't know how to use it :P
Nov 1 '09 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: Shelly | last post by:
I have a list of file descriptions in a list box that is filled via a php mysql select. I know the name of the file that is described by the file that is select from that list box. It is an audio...
2
by: Brian | last post by:
On a Slackware 9.1 box, I'm trying to detect if mpg123 is currently running/playing a song so that when the song is done, it'll play the next in the list. The problem is that popen'ing ps doesn't...
2
by: Frances Del Rio | last post by:
pls how do I detect if .swf movie is playing or has stopped? .swf is in a pop-up, I would like to trigger a window.close() once Flash movie has stopped playing.. (pls don't lecture me about...
4
by: Sumaira Ahmad | last post by:
Hi, Is there any way of playing songs and downloading songs from a server onto a client machine. I want to develop an application such as a music portal which allows clients to play songs that...
3
by: Tommy DN | last post by:
I've made a program that displays the track that's playing on a (internet)radiostation. The name of the "now playing" track comes from the radiostation's website ( from the statusbar using the...
1
by: Paul Fi | last post by:
im writing a C# program that tries to get the currently playing song in a seperate windows media player instance (external app) i found out that there might be a way to do that using the windows...
1
by: glenn123 | last post by:
Hi, i am just about out of time to produce a working jukebox which has to perform these functions: to play music files when a track is chosen from a list which when the user presses the change genre...
0
by: kimiraikkonen | last post by:
Hi I used Windows Media Player control to programme a simple player, The problem is when the song finishes playing it must jump to next item automatically. (listbox's items are used as media's...
2
by: =?Utf-8?B?Qm9iQWNoZ2lsbA==?= | last post by:
How can I best play several mp3 files one immediately after the other? Will this tie up the AxWindowsMediaPlayer1 instance such that I can't use the instance again until the files finish playing...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.