Русский English

CSPlayer installation on Raspberry Pi

The installation of the CSPlayer is a standard procedure of mounting an image on a flash-card. It is described below.

      Contents:

CSPlayer installation

To install the CSPlayer on a Raspberry device follow the instructions:

  • Install the Etcher software to be able to mount the image of the system with the CSPlayer.

  • Connect your 8 GB SD card via card-reader.

  • Download the system image with CSPlayer installed on it.

  • Launch the Etcher software, then select the downloaded image, the flash-card, click FLASH and wait for the image to be mounted.

After the image is mounted, insert the flash-card into Raspberry device.

Increasing the GPU memory

For better performance of the device, you need to increase the GPU memory. Open file /boot/config.txt and change or add the line:

gpu_mem=512

Restart the device. Then proceed to changing the orientation of the screen (if needed) or to connecting screen to your account.

Change screen orientation

If you want to change the orientation of the screen, e.g. to rotate it 90 degrees, then open file /usr/share/cityscreen/player/lib/player/run.sh and add the line:

export QT_QPA_EGLFS_ROTATION=90

Or type another desired rotation angle: 0, 90, 180.

Then restart the computer. You can then proceed to connecting screen to your account.

Connecting screen to your account

You can connect the CSPlayer on Raspberry Pi to your City Screen account via PIN.

To connect a screen to your account:

  • Go to your account.

  • Select the screen (or create a new screen) on the Screens page.

  • On the Parameters tab find PIN generation and click Generate. A 6-digit PIN will appear.

  • In the /usr/share/cityscreen/player/credentials.env file on Raspberry Pi computer change a CITYSCREEN_PIN variable to that PIN:

#!/bin/sh

CITYSCREEN_REGION=GLOBAL
CITYSCREEN_PIN=123456

USER=cityscreen

Restart the computer.

Wait for the CSPlayer to start. When it starts it's connected to your account and ready to play media content.