setLiveMixCustomLayouts method

Future<int> setLiveMixCustomLayouts(
  1. List<RCRTCCustomLayout> layouts
)

ZH

设置直播混流布局配置, 仅供直播主播用户使用 @param layouts 混流布局列表 @return 0: 成功, 非0: 失败

EN

Configure live stream layout (host only) @param layouts Array of mixing layouts @return 0: success, non-zero: failure

Implementation

Future<int> setLiveMixCustomLayouts(List<RCRTCCustomLayout> layouts) async {
  Map<String, dynamic> arguments = {
    'layouts': layouts.map((layout) => layout.toJson()).toList(),
  };
  int code =
      await _channel.invokeMethod('setLiveMixCustomLayouts', arguments) ?? -1;
  return code;
}