Search code examples
pyqt4phonon

Extract the filename or url of the current source of mediaobject in phonon


I'm trying to make a lyrics viewer in my music player created using pyqt and phonon module.for that i need to extract the url of local file or filename of the current source. Is there any idea how i can do it?


Solution

  • QUrl MediaSource.url(self) is what you are after.