Initial commit of ZonePlayer
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
from Scripts.ZonePlayer.OLD.persistent_player import PersistentPlayer
|
||||
import time
|
||||
|
||||
# create and start three players
|
||||
praise = PersistentPlayer("praise", "/home/media/Music/Praise")
|
||||
worship = PersistentPlayer("worship", "/home/media/Music/Worship")
|
||||
instrumental = PersistentPlayer("instrumental", "/home/media/Music/Instrumental")
|
||||
|
||||
for p in (praise, worship, instrumental):
|
||||
p.play_current()
|
||||
|
||||
# just keep Python alive; python-mpv's internal thread will fire your callbacks
|
||||
try:
|
||||
while True:
|
||||
time.sleep(1)
|
||||
except KeyboardInterrupt:
|
||||
print("Stopping…")
|
||||
Reference in New Issue
Block a user