Compare commits
2 commits
841a654254
...
4e04bec8ad
Author | SHA1 | Date | |
---|---|---|---|
4e04bec8ad | |||
a33f94d5af |
4 changed files with 34 additions and 0 deletions
11
player/player-back.service
Normal file
11
player/player-back.service
Normal file
|
@ -0,0 +1,11 @@
|
|||
[Unit]
|
||||
Description=player
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
Restart=always
|
||||
KillSignal=SIGINT
|
||||
ExecStart=/srv/pandora/t_for_time/player/player.py --mode peer--playlist /srv/t_for_time/render/back.m3u
|
||||
|
||||
[Install]
|
||||
WantedBy=default.target
|
11
player/player-front.service
Normal file
11
player/player-front.service
Normal file
|
@ -0,0 +1,11 @@
|
|||
[Unit]
|
||||
Description=player
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
Restart=always
|
||||
KillSignal=SIGINT
|
||||
ExecStart=/srv/pandora/t_for_time/player/player.py --mode main --playlist /srv/t_for_time/render/front.m3u
|
||||
|
||||
[Install]
|
||||
WantedBy=default.target
|
|
@ -158,6 +158,7 @@ class Sync(Thread):
|
|||
data = self.sock.recvfrom(1024)[0].decode().split(" ", 1)
|
||||
except socket.timeout:
|
||||
logger.error("failed to receive data from main")
|
||||
return self.read_position_main()
|
||||
else:
|
||||
self.main.time_pos = float(data[0])
|
||||
self.main.playlist_current_pos = int(data[1])
|
||||
|
|
11
player/saxophone.service
Normal file
11
player/saxophone.service
Normal file
|
@ -0,0 +1,11 @@
|
|||
[Unit]
|
||||
Description=saxophone loop
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
Restart=always
|
||||
ExecStart=/usr/bin/mpv --quiet --loop /srv/t_for_time/render/Saxophone-5.1.mp4
|
||||
KillSignal=SIGINT
|
||||
|
||||
[Install]
|
||||
WantedBy=default.target
|
Loading…
Reference in a new issue