getCurrentDownloadSpeed method

Future<int> getCurrentDownloadSpeed()

获取当前下载速度

返回当前的下载速度,单位为 bps (bits per second)

Implementation

Future<int> getCurrentDownloadSpeed() async {
  final result = await FlutterAliPlayerFactory.methodChannel
      .invokeMethod('getCurrentDownloadSpeed', wrapWithPlayerId());
  return result as int;
}