first version of pyplayer3.py
This commit is contained in:
@@ -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'])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user