createAudioEffect method

Future<int> createAudioEffect(
  1. String path,
  2. int effectId
)

ZH

创建音效, 仅供会议用户或直播主播用户使用 @param uri 文件URI @param effectId 自定义全局唯一音效Id @return 0: 成功, 非0: 失败

EN

Create sound effect (meeting hosts or live streamers only) @param uri File URI @param effectId Globally unique custom sound ID @return 0: success, non-zero: failure

Implementation

Future<int> createAudioEffect(String path, int effectId) async {
  Map<String, dynamic> arguments = {'path': path, 'id': effectId};
  int code =
      await _channel.invokeMethod('createAudioEffect', arguments) ?? -1;
  return code;
}