addVidSource method

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

添加vid资源到播放列表中

Implementation

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