addUrlSource method

Future<void> addUrlSource({
  1. @required dynamic url,
  2. @required dynamic uid,
})

添加url资源到播放列表中

Implementation

Future<void> addUrlSource({@required url, @required uid}) async {
  Map<String, dynamic> info = {'url': url, 'uid': uid};
  return FlutterAliPlayerFactory.methodChannel
      .invokeMethod("addUrlSource", wrapWithPlayerId(arg: info));
}