Hi,
I have this issue with MMM-MPlayer, that also has been reported by other users of the module.
When using the module, the MPlayer window is seen in the middle of the screen and has a MPlayer title.
This is what is running when using the module:
admin@MagicPi3b:~/MagicMirror/modules/MMM-MPlayer $ ps -eaf | grep mplayer | grep -v grep
admin 38919 38729 18 12:17 ? 00:00:01 mplayer -monitoraspect 0 -noborder -vf rotate=-1 -geometry 10:225 -xy 640 -rtsp-stream-over-tcp -vo xv,gl,gl_nosw,vdpau, -nosound rtsp://axisviewer:password@192.168.178.55/axis-media/media.amp?streamprofile=ACC_Low
The value of DISPLAY is: :0
When I run the same command like this, it is working as expected:
admin@MagicPi3b:~/MagicMirror/modules/MMM-MPlayer $ DISPLAY=:0 mplayer -monitoraspect 0 -noborder -vf rotate=-1 -geometry 10:225 -xy 640 -rtsp-stream-over-tcp -vo xv,gl,gl_nosw,vdpau, -nosound rtsp://axisviewer:password@192.168.178.55/axis-media/media.amp?streamprofile=ACC_Low
The MMM-MPlayer module uses this to start mplayer:
const env = { ...process.env, DISPLAY: ':0' };
const mplayerProcess = spawn(`mplayer`,
[`${mplayerOption}`, `${mplayerOptionValue}`,
:
:
`${stream}`],
{env: env});
I cannot get my finger behind this and I have no idea why this happens like this.
Any ideas ?