"Some" Macs not playing video with python bindings

This forum is about all development around libVLC.
Timothy Grove
Blank Cone
Blank Cone
Posts: 33
Joined: 07 Sep 2011 13:17

"Some" Macs not playing video with python bindings

Postby Timothy Grove » 19 Feb 2019 22:29

One of the most frustrating things for me as a developer is creating code that works perfectly for me, but fails on some user's machine. In general, has anyone had difficulty with playing videos in VLC on a Mac using the python bindings?

More specifically, I have a PyQt5 application for macOS (https://soosl.net/software.html); should run on anything from Mavericks through Mojave. Built with Python 3.7, PyQt5.11, and VLC 2.2.4. (I 'think' I've seen this with VLC 3 as well, but the current released version uses 2.2.4)

One user who is experiencing problems is running High Sierra on a Mac Air. I can't yet see a pattern to which Macs are having problems; 'maybe' newer Macs in general, but I can't get my hands on any of these machines to experiment with.

This is the code I use when initializing the instance:

Code: Select all

import vlc args = ["--verbose=-1", "--ignore-config", "--play-and-pause", "--no-video-title-show", "--no-plugins-cache" ] self.Instance = vlc.Instance(*args)
The code which connects the player to a window is something like the following:

Code: Select all

widget = QLabel() win_id = widget.winId() _id = int(win_id) player.set_nsobject(_id)
Not much to go on, perhaps, but if anyone has any suggestions, I sure would like to hear them! Thanks.

mfkl
Developer
Developer
Posts: 739
Joined: 13 Jun 2017 10:41

Re: "Some" Macs not playing video with python bindings

Postby mfkl » 20 Feb 2019 04:08

Ask the python bindings maintainer.
https://mfkl.github.io


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 12 guests