diff options
author | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2012-10-03 15:37:20 +0200 |
---|---|---|
committer | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2012-10-03 15:37:20 +0200 |
commit | c61253adbd5bed1d7393a3153f9c865517280431 (patch) | |
tree | f13e3d561129b2e9824895fbee82d9f65322b257 /chuck | |
parent | bca127f7f24f6a4b70e8797639619913e945b62b (diff) | |
download | osc-graphics-c61253adbd5bed1d7393a3153f9c865517280431.tar.gz |
added video recorder based on SDL_ffmpeg
Diffstat (limited to 'chuck')
-rw-r--r-- | chuck/OSCGraphics.ck | 18 |
1 files changed, 17 insertions, 1 deletions
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; |