startPreview method

Future<void> startPreview({
  1. bool isAnchor = true,
})

开始预览 同步接口

isAnchor 是否是主播,Android 端有效

Implementation

Future<void> startPreview({bool isAnchor = true}) async {
  return _livePusherMethodChannel.invokeMethod(
    'startPreview',
    wrapArgs(arg: isAnchor),
  );
}