Hi,

I`m trying to write simple video player with Phonon. It is prety simple,
but i found one problem.

I have few movies with more than one audio tracks in it. Phonon
automatically playes first audio track. But i need to be able list and
choose them.

I tryed:

<code>
class MainWindow(QtGui.QMainWindow):
    def __init__(self, parent = None):
        QtGui.QMainWindow.__init__(self, parent)

        filename = 'movie.avi'

        source = Phonon.MediaSource(filename)
        media = Phonon.MediaObject()
        media.setCurrentSource(source)
        crl = Phonon.MediaController(media)
        print "Channels:\n"
        print crl.availableAudioChannels()
</code>

And output is:

Object::connect: No such signal
Phonon::DS9::MediaObject::availableSubtitlesChan
ged()
Object::connect: No such signal
Phonon::DS9::MediaObject::availableAudioChannels
Changed()
Channels:

[]

No available audio channels found.
Please does anyone know what i am doing wrong?

Thank you,
Miroslav Misek
_______________________________________________
PyQt mailing list    PyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Reply via email to