From a6784d57c203b61b09b4a6d5d8895a666d89327f Mon Sep 17 00:00:00 2001 From: micha Date: Wed, 13 Oct 2010 15:43:08 +0200 Subject: fixed media player --- server/media.erl | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/server/media.erl b/server/media.erl index 3678ff3..3897a6a 100644 --- a/server/media.erl +++ b/server/media.erl @@ -55,9 +55,8 @@ all() -> play(Artist, Title, Callback) -> [Head|_] = ask(Artist, Title), - {_, artist, title, _, _, fp} = Head, - Cmd = "mplayer -quiet " ++ fp, - Port = erlang:open_port({spawn, Cmd}, [exit_status]). - + {_, _, _, _, _, Fp} = Head, +% Port = erlang:open_port({spawn, Cmd}, [exit_status]). + Port = erlang:open_port({spawn_executable, "/usr/bin/mplayer"}, [{args, [Fp]}]). % We want to execute commands locally -- cgit v1.2.3