LibVlc can't be used in Qt Frame in Python

297 Views Asked by At

So I'm trying to embed a few VLC media players into their separate QTFrames. Everything is done in python. However for some reason the official example doesn't want to work (found here)

My code looks like this:

for files in tutorialVideoFiles:
     #frame = QFrame()
     mediaplayer = vlcInstance.media_player_new()  #create media player
     media = vlcInstance.media_new(mainTutorialDirectory + "/" + self.tutorialName + "/" + files)  #load video file
     mediaplayer.set_media(media)  #assign video file
     media.parse()
     self.mediaplayers.append(mediaplayer)
     #mediaplayer.set_hwnd(frame.winId())

If I uncomment the lines, I get the following error: "directdraw vout display error: Win32VoutCreateWindow RegisterClass FAILED (err=1410)"

I'm using Windows 64 bit and Python 3.6

0

There are 0 best solutions below