getFps method

  1. @override
Future<num> getFps()
override

Get the video's Frames Per Second (FPS).
Return the video's Frames Per Second (FPS).

Implementation

@override
Future<num> getFps() async {
  var params = <String, dynamic>{};
  params.putIfAbsent("userId", () => userId);

  return await methodChannel
      .invokeMethod<num>('getUserVideoFps', params)
      .then<num>((num? value) => value ?? 0);
}