wxvlc.py Example no Longer Works on Windows

This forum is about all development around libVLC.
ryannathans
New Cone
New Cone
Posts: 3
Joined: 22 Feb 2014 07:11

wxvlc.py Example no Longer Works on Windows

Postby ryannathans » 22 Feb 2014 07:17

Hi guys

I'm playing with the wxvlc.py example on the wiki https://raw.github.com/geoffsalmon/vlc- ... s/wxvlc.py
and the vlc.py from the wiki http://git.videolan.org/?p=vlc/bindings ... ted;b=HEAD

Works flawlessly on Linux. It's supposed to be cross platform win/osx/unix
Edited the code and made it so that media playback can be synchronized with a friend over the network.
Went to a windows machine to use it and the audio played but video wouldn't render.

Logs: http://pastebin.com/SiM5n68X

There's no output, warnings, etc in linux at all. Just works flawlessly.

What's the problem? I played around for a while and couldn't see what the issue was.

ryannathans
New Cone
New Cone
Posts: 3
Joined: 22 Feb 2014 07:11

Re: wxvlc.py Example no Longer Works on Windows

Postby ryannathans » 22 Feb 2014 07:43

fixed!

replace the line of code self.player.set_xwindow(self.videopanel.GetHandle()) (which only seems to be linux compatible)

to the following

if sys.platform.startswith('win'):
self.player.set_hwnd(self.videopanel.GetHandle())
#self.videopanel.GetHandle()
elif sys.platform.startswith('linux'):
self.player.set_xwindow(self.videopanel.GetHandle())
else:
self.player.set_nsobject(self.videopanel.GetHandle())

ryannathans
New Cone
New Cone
Posts: 3
Joined: 22 Feb 2014 07:11

Re: wxvlc.py Example no Longer Works on Windows

Postby ryannathans » 22 Feb 2014 07:52

someone should update the example file to actually be cross platform...


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 40 guests