livePlay method

Future<bool> livePlay(
  1. SCSourceModel source,
  2. int heartbeatLength
)

活动直播 播放心跳 heartbeatLength 心跳时间,第一次开启直播统计直播事件时心跳值为0,之后每次调用值为60;即每隔60秒上传一次直播日志

Implementation

Future<bool> livePlay(SCSourceModel source, int heartbeatLength) async {
  if (!_supportPlatform || !isInitialize) return false;
  final bool? state = await _channel.invokeMethod<bool>('livePlay',
      source.toMap().addAllT({'heartbeatLength': heartbeatLength}));
  return state ?? false;
}