How can I get info from media player

All your problems with Audio, Video and Images.

How can I get info from media player

Postby Ghzsoft » Fri Jun 10, 2011 4:39 pm

Hi I'm trying to get some infos like title etc from the song which the media player is playing but I really don't know how to do this... Anyone have any advice?

Are there any classes to do this?

Thanks again...
Ghzsoft
Freshman
Freshman
 
Posts: 4
Joined: Fri Jun 10, 2011 4:30 pm

Top

Re: How can I get info from media player

Postby abhijitphatak28 » Mon Jun 13, 2011 5:53 am

This information basically resides in the header of a sound file and you can get those information by parsing the file.

Thanks

Regards
-Abhijit
User avatar
abhijitphatak28
Senior Developer
Senior Developer
 
Posts: 102
Joined: Sat Feb 12, 2011 1:18 pm
Location: Indore

Re: How can I get info from media player

Postby Ghzsoft » Mon Jun 13, 2011 5:20 pm

Yes but how can I get the info from the current playing track? Because I need this... :)

thanks!
Ghzsoft
Freshman
Freshman
 
Posts: 4
Joined: Fri Jun 10, 2011 4:30 pm

Re: How can I get info from media player

Postby abhijitphatak28 » Tue Jun 14, 2011 5:55 am

You know the path of the file which is playing ? If yes, you can directly read few starting bytes of that file in memory and would parse those to get desired information. You need to parse the bytes based on the audio format that file is playing with.

Thanks

Regards
-Abhijit
User avatar
abhijitphatak28
Senior Developer
Senior Developer
 
Posts: 102
Joined: Sat Feb 12, 2011 1:18 pm
Location: Indore

Re: How can I get info from media player

Postby Ghzsoft » Tue Jun 14, 2011 1:41 pm

Here is the problem, I don't know what is playing and so I also don't know the path of the file's playing. Are there any methods to get te current playing track from the media player if I don't know which it is?

Thanks.
Ghzsoft
Freshman
Freshman
 
Posts: 4
Joined: Fri Jun 10, 2011 4:30 pm

Re: How can I get info from media player

Postby abhijitphatak28 » Wed Jun 15, 2011 6:28 am

Check the below link:

http://stackoverflow.com/questions/3786 ... oid-device

Thanks

Regards
-Abhijit
User avatar
abhijitphatak28
Senior Developer
Senior Developer
 
Posts: 102
Joined: Sat Feb 12, 2011 1:18 pm
Location: Indore

Top

Return to Multimedia Problems

Who is online

Users browsing this forum: No registered users and 12 guests