Open creating-worlds opened 2 years ago
I suspect you probably run into permission issues: when the matrix starts, it changes the permissions from root
to an unprivileged user to minimize attack surface. However, if you then open files (such as, say, a movie file), that file needs to be able to be read by the new user (which is daemon
).
So either make the file chmod a+r videofile.mp4
or set the runtime options of the matrix to not drop_privileges
.
Hi there,
first of all thank you for this amazing library. It works like a charm!
My setup:
Hardware:
I am trying to play a video on an additional screen via HDMI (I am NOT trying to output a video on the Matrix). I am using the MPV Player (python-mpv) to output the video.
Here is my code (at least the important bits)
First I thought this might be a threading issue with my socketio client but it turns out that there is a conflict with the matrix library. If I comment out matrix = led_matrix.initialize() the video plays perfectly. However, when the matrix was initialized before I try to play the video, it prints "start video" and without any output it prints "stop video" immediately after.
Do you have any idea why this is happening?