mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-18 22:53:26 +02:00
add frame rate management (#558)
Signed-off-by: Denis barbaron <denis.barbaron@orange.com>
This commit is contained in:
@@ -115,6 +115,12 @@ module.exports.builder = function(yargs) {
|
||||
, type: 'string'
|
||||
, default: ip()
|
||||
})
|
||||
.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'
|
||||
@@ -198,6 +204,7 @@ module.exports.handler = function(argv) {
|
||||
, '--storage-url', argv.storageUrl
|
||||
, '--adb-host', argv.adbHost
|
||||
, '--adb-port', argv.adbPort
|
||||
, '--screen-frame-rate', argv.screenFrameRate
|
||||
, '--screen-jpeg-quality', argv.screenJpegQuality
|
||||
, '--screen-grabber', argv.screenGrabber
|
||||
, '--screen-ping-interval', argv.screenPingInterval
|
||||
|
||||
Reference in New Issue
Block a user