diff options
author | Marco Ziener <mziener@lavabit.com> | 2010-10-13 15:26:59 +0200 |
---|---|---|
committer | Marco Ziener <mziener@lavabit.com> | 2010-10-13 15:26:59 +0200 |
commit | 86442139036c7d1b8be83b60d43197a618ac93c6 (patch) | |
tree | 9d69201b97f4a871e6f657bf9c9b1e1043f09f54 | |
parent | c99c47da34ef134d226c074c30e87319d74e450c (diff) | |
download | erlang-86442139036c7d1b8be83b60d43197a618ac93c6.tar.gz erlang-86442139036c7d1b8be83b60d43197a618ac93c6.tar.xz erlang-86442139036c7d1b8be83b60d43197a618ac93c6.zip |
Media
-rw-r--r-- | server/media.erl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/server/media.erl b/server/media.erl index 644d533..3678ff3 100644 --- a/server/media.erl +++ b/server/media.erl @@ -1,5 +1,5 @@ -module(media). --export([init/0,insert/3, ask/2, all/0]). +-export([init/0,insert/3, ask/2, all/0, play/3]). % Since we are not willing to calculate and deliver all the id3 tags everytime they are requested, % we try to get something persistent with mnesia. @@ -56,8 +56,8 @@ all() -> play(Artist, Title, Callback) -> [Head|_] = ask(Artist, Title), {_, artist, title, _, _, fp} = Head, - Port = erlang:open_port({spawn, Cmd}, [exit_status]), - re + Cmd = "mplayer -quiet " ++ fp, + Port = erlang:open_port({spawn, Cmd}, [exit_status]). % We want to execute commands locally |