From 2c2964be70a43757db751de517743c112efac51b Mon Sep 17 00:00:00 2001 From: jeffgaogao Date: Mon, 30 Oct 2023 17:44:20 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0api=E6=96=87=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 2.1.0/Classes/TcrSession.html | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/2.1.0/Classes/TcrSession.html b/2.1.0/Classes/TcrSession.html index e060d44..a4f2a4b 100644 --- a/2.1.0/Classes/TcrSession.html +++ b/2.1.0/Classes/TcrSession.html @@ -180,13 +180,15 @@

Parameters

params -

Optional, the following key-value pairs can be selected: -- @“preferredCodec”: Optional values are @“H264” or @“H265”. Used to set the preferred codec. If the value is not @“H264” or @“H265”, the setting is invalid. If this field is set, the session will try to use the preferred codec for communication. If the preferred codec is not available, other available codecs will be used. If this field is not set or the setting is invalid, the session will use the default codec. -- @“local_video”: Optional value is of bool type. Used to enable the local camera.. -- @“local_audio”: Optional value is of bool type. Used to enable the local microphone. -- @“enableCustomAudioCapture”:@{@“sampleRate”:NSInteger, @“useStereoInput”: BOOL}, enable custom audio capture and bring the sample rate and channel count of the custom captured audio (both parameters are required). -e.g. @“enableCustomAudioCapture”:@{@“sampleRate”:@(48000), @“useStereoInput”:@(false)} means a sample rate of 48000 and mono data. -In addition, to enable custom audio capture, you also need to set @“local_audio” to enable local audio upstream.

+ +

Optional, the following key-value pairs can be selected:

+

- @“preferredCodec”: Optional values are @“H264” or @“H265”. Used to set the preferred codec. If the value is not @“H264” or @“H265”, the setting is invalid. If this field is set, the session will try to use the preferred codec for communication. If the preferred codec is not available, other available codecs will be used. If this field is not set or the setting is invalid, the session will use the default codec.

+

- @“local_video”: Optional value is of bool type. Used to enable the local camera.

+

- @“local_audio”: Optional value is of bool type. Used to enable the local microphone.

+

- @“enableCustomAudioCapture”:@{@“sampleRate”:NSInteger, @“useStereoInput”: BOOL}, enable custom audio capture and bring the sample rate and channel count of the custom captured audio (both parameters are required). +
e.g. @“enableCustomAudioCapture”:@{@“sampleRate”:@(48000), @“useStereoInput”:@(false)} means a sample rate of 48000 and mono data. +In addition, to enable custom audio capture, you also need to set @“local_audio” to enable local audio upstream.

+