mirror of
https://github.com/nova-r/fediplug.git
synced 2025-01-23 00:56:47 +01:00
updated to use ffplay instead of aplay for better cross-platform compatibility
This commit is contained in:
parent
012a9e03eb
commit
9346e3a399
1 changed files with 2 additions and 1 deletions
|
@ -25,7 +25,8 @@ class Queue(object):
|
||||||
|
|
||||||
def run_thread(filename, cb_complete):
|
def run_thread(filename, cb_complete):
|
||||||
print('==> Playing', filename)
|
print('==> Playing', filename)
|
||||||
run(['afplay', filename])
|
cmd = 'ffplay -v 0 -nostats -hide_banner -autoexit -nodisp'.split()
|
||||||
|
run(['ffplay', '-v', '0', '-nostats', '-hide_banner', '-autoexit', '-nodisp', filename])
|
||||||
cb_complete()
|
cb_complete()
|
||||||
|
|
||||||
thread = Thread(target=run_thread, args=(filename, cb_complete))
|
thread = Thread(target=run_thread, args=(filename, cb_complete))
|
||||||
|
|
Loading…
Reference in a new issue