Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 2c2964b

Browse files
author
jeffgaogao
committed
更新api文档
1 parent 56bc155 commit 2c2964b

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

‎2.1.0/Classes/TcrSession.html‎

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -180,13 +180,15 @@ <h4 class="method-subtitle parameter-title">Parameters</h4>
180180

181181
<tr>
182182
<th scope="row" class="argument-name"><code>params</code></th>
183-
<td><p>Optional, the following key-value pairs can be selected:
184-
- @&ldquo;preferredCodec&rdquo;: Optional values are @&ldquo;H264&rdquo; or @&ldquo;H265&rdquo;. Used to set the preferred codec. If the value is not @&ldquo;H264&rdquo; or @&ldquo;H265&rdquo;, 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.
185-
- @&ldquo;local_video&rdquo;: Optional value is of bool type. Used to enable the local camera..
186-
- @&ldquo;local_audio&rdquo;: Optional value is of bool type. Used to enable the local microphone.
187-
- @&ldquo;enableCustomAudioCapture&rdquo;:@{@&ldquo;sampleRate&rdquo;:NSInteger, @&ldquo;useStereoInput&rdquo;: BOOL}, enable custom audio capture and bring the sample rate and channel count of the custom captured audio (both parameters are required).
188-
e.g. @&ldquo;enableCustomAudioCapture&rdquo;:@{@&ldquo;sampleRate&rdquo;:@(48000), @&ldquo;useStereoInput&rdquo;:@(false)} means a sample rate of 48000 and mono data.
189-
In addition, to enable custom audio capture, you also need to set @&ldquo;local_audio&rdquo; to enable local audio upstream.</p></td>
183+
<td>
184+
<p>Optional, the following key-value pairs can be selected:</p>
185+
<p>- @&ldquo;preferredCodec&rdquo;: Optional values are @&ldquo;H264&rdquo; or @&ldquo;H265&rdquo;. Used to set the preferred codec. If the value is not @&ldquo;H264&rdquo; or @&ldquo;H265&rdquo;, 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.</p>
186+
<p>- @&ldquo;local_video&rdquo;: Optional value is of bool type. Used to enable the local camera.</p>
187+
<p>- @&ldquo;local_audio&rdquo;: Optional value is of bool type. Used to enable the local microphone.</p>
188+
<p>- @&ldquo;enableCustomAudioCapture&rdquo;:@{@&ldquo;sampleRate&rdquo;:NSInteger, @&ldquo;useStereoInput&rdquo;: BOOL}, enable custom audio capture and bring the sample rate and channel count of the custom captured audio (both parameters are required).
189+
<br>e.g. @&ldquo;enableCustomAudioCapture&rdquo;:@{@&ldquo;sampleRate&rdquo;:@(48000), @&ldquo;useStereoInput&rdquo;:@(false)} means a sample rate of 48000 and mono data.
190+
In addition, to enable custom audio capture, you also need to set @&ldquo;local_audio&rdquo; to enable local audio upstream.</p>
191+
</td>
190192
</tr>
191193

192194
<tr>

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /