Media_player.download_playlist() # Adds media to self. A MediaList to load in the MediaListPlayerĭocumentation for these can be found here: A MediaListPlayer for playing playlists The core Python code looks something like this: import vlcĪ media player that communicates with our CMS to download resourcesĪnd update the message broker with its playback status. # TODO: work out how to detect X has started # Set the DBUS address for sending around system messagesĮxport DBUS_SYSTEM_BUS_ADDRESS=unix:path=/host/run/dbus/system_bus_socket # Remove the X server lock file so ours starts cleanly # pi.sh will run when the container starts up on the device RUN pip3 install -Ur /code/requirements/prod.txt requirements/prod.txt /code/requirements/prod.txt requirements/base.txt /code/requirements/base.txtĬOPY. # Enable udevd so that plugged dynamic hardware devices show up in our container.ĬOPY. & echo 'exec /usr/bin/X -s 0 dpms -nolisten tcp > /etc/X11/xinit/xserverrc RUN echo "#!/bin/bash" > /etc/X11/xinit/xserverrc \ RUN mv /usr/bin/lxpolkit /usr/bin/lxpolkit.bakĬOPY /conf/nf /root/.config/pcmanfm/LXDE-pi/ĬOPY /conf/panel /root/.config/lxpanel/LXDE-pi/panels/ĬOPY /conf/autostart /etc/xdg/lxsession/LXDE-pi/ĬOPY /conf/autostart /root/.config/lxsession/LXDE-pi/ RUN install_packages vlc vlc-plugin-* g++ python3-pip python3-setuptools python3-dev build-essential \ # Use `install_packages` for dependencies RESIN_HOST_CONFIG_dtoverlay: “vc4-fkms-v3d”ĭockerfile.template # Force Raspberry Pi 3 for 32-bit X.Define DT parameters: “i2c_arm=on”,“spi=on”,“audio=on”.Define device GPU memory in megabytes: 512.If anyone has any ideas how to debug further that’d be great! Are there any Device Variables we should be setting differently?.Could you check over our Dockerfile.template & start script for obvious errors?.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |