first version of pyplayer3.py

This commit is contained in:
2017-10-09 22:42:42 +02:00
parent 6c5fac6353
commit 341539bdab
3 changed files with 96 additions and 107 deletions
+2 -2
View File
@@ -31,7 +31,7 @@ def start_playing():
def play_sound(filename):
clear_playlist()
add_file(filename)
add_uri(filename)
start_playing()
def list_files(dir):
@@ -56,7 +56,7 @@ for filename in filenames:
start_playing()
time.sleep(3)
time.sleep(2)
json = call('core.playback.get_time_position').json()
print(json['result'])