mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-17 23:53:25 +02:00
add frame rate management (#558)
Signed-off-by: Denis barbaron <denis.barbaron@orange.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user