isPushing method

Future<bool> isPushing()

获取是否正在推流

returns 是否正在推流 true:正在推流,false:未推流

Implementation

Future<bool> isPushing() async {
  String strV = await _livePusherMethodChannel.invokeMethod(
    'isPushing',
    wrapArgs(),
  );
  int intV = int.parse(strV);
  return intV == 1 ? true : false;
}