By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,818 Members | 1,223 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,818 IT Pros & Developers. It's quick & easy.

id3 tag editor

P: 7
Hey guys,
Im making an mp3 id3 tag editor,
but im wondering if anyone knows how i can play a file,within the same window?
just simple play and pause options..
thanks
Aug 11 '07 #1
Share this Question
Share on Google+
7 Replies


bartonc
Expert 5K+
P: 6,596
Hey guys,
Im making an mp3 id3 tag editor,
but im wondering if anyone knows how i can play a file,within the same window?
just simple play and pause options..
thanks
I'd be very interested to know what your toolkit is (what you mean by "window").
What you are seeking to do seems not to difficult on windows using the win32com package if you are talking about Microsoft's WMP on Windows.
Aug 12 '07 #2

P: 7
I'd be very interested to know what your toolkit is (what you mean by "window").
What you are seeking to do seems not to difficult on windows using the win32com package if you are talking about Microsoft's WMP on Windows.
well ive created a window frame where everything is in,
including fields,listbox with tracklist,artwork..etc

i wanna know how to embed a simple,invisible player,which i can just link to a 'play' and 'stop' button.yeah im assuming id somehow use WMP
thanks
Aug 12 '07 #3

bartonc
Expert 5K+
P: 6,596
well ive created a window frame where everything is in,
including fields,listbox with tracklist,artwork..etc

i wanna know how to embed a simple,invisible player,which i can just link to a 'play' and 'stop' button.yeah im assuming id somehow use WMP
thanks
After you have installed the PyWin32 Extensions, you simply:
Expand|Select|Wrap|Line Numbers
  1. >>> import win32com.client
  2. >>> wmp = win32com.client.Dispatch("MediaPlayer.MediaPlayer.1")
  3. >>> wmp.FileName = "C:/Path/To/Some/Media/File.wav"
  4. >>> wmp.Play()
There are many hits on google here.
Aug 12 '07 #4

P: 7
ok thanks a lot for that
im putting it aside for the moment,

right now im having problems importing the id3 tag of any mp3 into the corresponding text fields

im using the 'getselection' method;
self.loadID3Data(self.panel.trackList.GetSelection ())

im using wxpthon,and when i debug the function, it says the value is '0' for the file's data

any help would be appreciated,thanks
Aug 20 '07 #5

bartonc
Expert 5K+
P: 6,596
ok thanks a lot for that
im putting it aside for the moment,

right now im having problems importing the id3 tag of any mp3 into the corresponding text fields

im using the 'getselection' method;
self.loadID3Data(self.panel.trackList.GetSelection ())

im using wxpthon,and when i debug the function, it says the value is '0' for the file's data

any help would be appreciated,thanks
There's not much for me to go on, there. But I'm guessing that you want:
Expand|Select|Wrap|Line Numbers
  1. trackList.GetStringSelection ()
Aug 20 '07 #6

P: 7
There's not much for me to go on, there. But I'm guessing that you want:
Expand|Select|Wrap|Line Numbers
  1. trackList.GetStringSelection ()
thanks,that now gives me a value of '1',
but im trying to get the files directory address to import the file's id3 info to my listbox
thanks again
Aug 21 '07 #7

P: 7
wait no,
that worked!
thanks a lot

now im just working on importing the id3 tag :]
Aug 21 '07 #8

Post your reply

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