enableVideo static method

Future<void> enableVideo(
  1. String policy,
  2. String quality,
  3. double framesPerSecond
)

Enables the ability to capture video recording regardless of build settings.

Valid values for policy include “always” and “wifi”. Valid values for quality include “high”, “low”, “medium”. Values for fps must be between 0.1 and 2.0. Value will be rounded to the nearest frame.

Implementation

static Future<void> enableVideo(
    String policy, String quality, double framesPerSecond) async {
  TestFairyBase.prepareTwoWayInvoke();

  final Map<String, dynamic> args = <String, dynamic>{
    'policy': policy,
    'quality': quality,
    'framesPerSecond': framesPerSecond
  };

  await TestFairyBase.channel.invokeMethod<void>('enableVideo', args);
}