mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-18 08:03:30 +02:00
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:
@@ -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())) {
|
||||
|
||||
Reference in New Issue
Block a user