add frame rate management (#558)

Signed-off-by: Denis barbaron <denis.barbaron@orange.com>
This commit is contained in:
Denis Barbaron
2022-08-03 13:48:51 +02:00
committed by GitHub
parent da9284b288
commit d9e59446f3
3 changed files with 40 additions and 6 deletions

View File

@@ -1,3 +1,7 @@
/**
* Copyright © 2022 contains code contributed by Orange SA, authors: Denis Barbaron - Licensed under the Apache license 2.0
**/
module.exports.command = 'device'
module.exports.builder = function(yargs) {
@@ -92,6 +96,12 @@ module.exports.builder = function(yargs) {
, type: 'string'
, demand: true
})
.option('screen-frame-rate', {
describe: 'The frame rate (frames/s) to be used for screen transport on the network. ' +
'Float value must be > 0.0 otherwise the default behavior is kept'
, type: 'number'
, default: process.env.SCREEN_FRAME_RATE || -1
})
.option('screen-jpeg-quality', {
describe: 'The JPG quality to use for the screen.'
, type: 'number'
@@ -164,6 +174,7 @@ module.exports.handler = function(argv) {
, storageUrl: argv.storageUrl
, adbHost: argv.adbHost
, adbPort: argv.adbPort
, screenFrameRate: argv.screenFrameRate
, screenJpegQuality: argv.screenJpegQuality
, screenGrabber: argv.screenGrabber
, screenPingInterval: argv.screenPingInterval