From 797e97e7c7353424cd9b0ceef69cde0c800139e6 Mon Sep 17 00:00:00 2001 From: Simo Kinnunen Date: Mon, 14 Sep 2015 19:34:06 +0900 Subject: [PATCH] Tell new broadcast sessions what the current state is, just in case they were added in the middle of an existing session. --- lib/units/device/plugins/screen/stream.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/units/device/plugins/screen/stream.js b/lib/units/device/plugins/screen/stream.js index bc9e5b7d..783296d8 100644 --- a/lib/units/device/plugins/screen/stream.js +++ b/lib/units/device/plugins/screen/stream.js @@ -455,6 +455,10 @@ module.exports = syrup.serial() frameProducer.stop() }) + broadcastSet.on('insert', function(id) { + broadcastSet.get(id).onStart(frameProducer) + }) + display.on('rotationChange', function(newRotation) { frameProducer.updateRotation(newRotation) })