From 4b71fef0c1e29c89f06389b6db81cd578d028f12 Mon Sep 17 00:00:00 2001 From: Gubolin Date: Sun, 10 Aug 2014 20:04:52 +0200 Subject: add camera streaming blocks (fix #460) --- objects.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'objects.js') diff --git a/objects.js b/objects.js index fbb9e84..06bab19 100644 --- a/objects.js +++ b/objects.js @@ -569,6 +569,16 @@ SpriteMorph.prototype.initBlocks = function () { category: 'pen', spec: 'stamp' }, + doStreamCamera: { + type: 'command', + category: 'pen', + spec: 'start streaming from the camera' + }, + doStopCamera: { + type: 'command', + category: 'pen', + spec: 'stop streaming from the camera' + }, // Control receiveGo: { @@ -4911,6 +4921,9 @@ StageMorph.prototype.blockTemplates = function (category) { } else if (cat === 'pen') { blocks.push(block('clear')); + blocks.push('-'); + blocks.push(block('doStreamCamera')); + blocks.push(block('doStopCamera')); } else if (cat === 'control') { -- cgit v1.3.1