From 9346e3a3990b16d495337853bdcc3d96b7378418 Mon Sep 17 00:00:00 2001 From: DJSundog Date: Thu, 28 Dec 2017 13:31:36 -0800 Subject: [PATCH] updated to use ffplay instead of aplay for better cross-platform compatibility --- fediplay.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fediplay.py b/fediplay.py index 6cb4f88..3b329d8 100644 --- a/fediplay.py +++ b/fediplay.py @@ -25,7 +25,8 @@ class Queue(object): def run_thread(filename, cb_complete): 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() thread = Thread(target=run_thread, args=(filename, cb_complete))