aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarco Ziener <mziener@lavabit.com>2010-10-13 15:26:59 +0200
committerMarco Ziener <mziener@lavabit.com>2010-10-13 15:26:59 +0200
commit86442139036c7d1b8be83b60d43197a618ac93c6 (patch)
tree9d69201b97f4a871e6f657bf9c9b1e1043f09f54
parentc99c47da34ef134d226c074c30e87319d74e450c (diff)
downloaderlang-86442139036c7d1b8be83b60d43197a618ac93c6.tar.gz
erlang-86442139036c7d1b8be83b60d43197a618ac93c6.tar.xz
erlang-86442139036c7d1b8be83b60d43197a618ac93c6.zip
Media
-rw-r--r--server/media.erl6
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