getBpf method

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

Get the video's bit rate.
Return the video's bit rate.

Implementation

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

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