Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1 #3620

Merged
merged 8 commits into from
May 10, 2024
Merged

1 #3620

merged 8 commits into from
May 10, 2024

Conversation

Suri539
Copy link
Collaborator

@Suri539 Suri539 commented May 8, 2024

No description provided.

</section>
<section id="timing" deliveryTarget="details">
<title>调用时机</title>
<p>由于 SDK 预加载频道需要一定的时间,因此声网推荐你在确认频道名、用户信息后、加入频道前,尽早调用该方法。</p>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

可以考虑把重要的信息先说,比如:
该方法需要在加入频道前尽早调用。建议提前获取 x、x 和 x 后即可加入频道,以提升预加载频道的速度。

Copy link
Collaborator Author

@Suri539 Suri539 May 10, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

提前获取 x、x 和 x 后即可加入频道,这个描述有点问题,这里不是加入频道,按照之前raoqi的建议修改了

dita/RTC-NG/API/api_irtcengine_preloadchannel.dita Outdated Show resolved Hide resolved
dita/RTC-NG/API/api_irtcengine_preloadchannel.dita Outdated Show resolved Hide resolved
dita/RTC-NG/API/api_irtcengine_renewtoken.dita Outdated Show resolved Hide resolved
<li>调用 <xref keyref="leaveChannel2"/> 离开当前频道,然后在调用 <xref keyref="joinChannel2" /> 时传入新的 Token 重新加入频道。</li>
</ul></li>
<li>多频道场景:调用 <xref keyref="updateChannelMediaOptionsEx"/> 传入新的 Token。</li>
</ul></p>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

多频道场景下会触发 onRequestToken 回调么?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@@ -45,11 +57,10 @@
<ul props="native unreal bp electron unity rn electron cs">
<li>0: 方法调用成功。</li>
<li>&lt; 0: 方法调用失败。<ph props="cn">详见<xref keyref="error-code-link"/>了解详情和解决建议。</ph>

<ul>
<li>-2:传入的参数无效。例如,使用了不合法的 Token。你需要填入有效的参数。</li>
Copy link

@peilinok peilinok May 8, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

内部判断逻辑是,token为nullptr返回 -2;token不合法,比如appid与对应connection不匹配,返回 -110 -ERR_INVALID_TOKEN

@Suri539 Suri539 merged commit f883b16 into master May 10, 2024
30 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants