Rotate canvas image on client side when necessary. Minicap now always returns the image in upright position for newer devices.

This commit is contained in:
Simo Kinnunen
2015-04-23 14:45:10 +09:00
parent 7202f102d9
commit 9ea0839b0b
18 changed files with 46 additions and 15 deletions

View File

@@ -389,6 +389,17 @@ module.exports = syrup.serial()
frameProducer.updateRotation(newRotation)
})
frameProducer.on('start', function() {
var message = util.format(
'start %s'
, JSON.stringify(frameProducer.banner)
)
broadcastSet.values().forEach(function(ws) {
ws.send(message)
})
})
frameProducer.on('readable', function next() {
var frame
if ((frame = frameProducer.nextFrame())) {