setPreloadCount method

Future<void> setPreloadCount(
  1. int count
)

设置预加载的个数 当前位置的前preloadCount和后preloadCount,默认preloadCount = 2

Implementation

Future<void> setPreloadCount(int count) async {
  return FlutterAliPlayerFactory.methodChannel
      .invokeMethod("setPreloadCount", wrapWithPlayerId(arg: count));
}