From c61253adbd5bed1d7393a3153f9c865517280431 Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Wed, 3 Oct 2012 15:37:20 +0200 Subject: added video recorder based on SDL_ffmpeg --- chuck/OSCGraphics.ck | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) (limited to 'chuck') diff --git a/chuck/OSCGraphics.ck b/chuck/OSCGraphics.ck index 6c2fcec..82da22e 100644 --- a/chuck/OSCGraphics.ck +++ b/chuck/OSCGraphics.ck @@ -1,6 +1,6 @@ public class OSCGraphics { static OscSend @osc_send; - 1 => static int free_id; + static int free_id; fun static void clear() @@ -8,6 +8,20 @@ public class OSCGraphics { osc_send.startMsg("/layer/*/delete", ""); } + fun static string + record(string file) + { + osc_send.startMsg("/recorder/start", "s"); + file => osc_send.addString; + + return file; + } + fun static void + stopRecord() + { + osc_send.startMsg("/recorder/stop", ""); + } + fun static OSCGraphicsImage @ getImage(string name) { @@ -165,3 +179,5 @@ public class OSCGraphics { /* static initialization */ new OscSend @=> OSCGraphics.osc_send; OSCGraphics.osc_send.setHost("localhost", 7770); + +1 => OSCGraphics.free_id; -- cgit v1.2.3