-
Notifications
You must be signed in to change notification settings - Fork 19
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
Conversation
</section> | ||
<section id="timing" deliveryTarget="details"> | ||
<title>调用时机</title> | ||
<p>由于 SDK 预加载频道需要一定的时间,因此声网推荐你在确认频道名、用户信息后、加入频道前,尽早调用该方法。</p> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
可以考虑把重要的信息先说,比如:
该方法需要在加入频道前尽早调用。建议提前获取 x、x 和 x 后即可加入频道,以提升预加载频道的速度。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
提前获取 x、x 和 x 后即可加入频道,这个描述有点问题,这里不是加入频道,按照之前raoqi的建议修改了
<li>调用 <xref keyref="leaveChannel2"/> 离开当前频道,然后在调用 <xref keyref="joinChannel2" /> 时传入新的 Token 重新加入频道。</li> | ||
</ul></li> | ||
<li>多频道场景:调用 <xref keyref="updateChannelMediaOptionsEx"/> 传入新的 Token。</li> | ||
</ul></p> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
多频道场景下会触发 onRequestToken 回调么?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
会
dita/RTC-NG/API/callback_irtcengineeventhandler_onrtcstats.dita
Outdated
Show resolved
Hide resolved
dita/RTC-NG/API/callback_irtcengineeventhandler_ontokenprivilegewillexpire.dita
Outdated
Show resolved
Hide resolved
@@ -45,11 +57,10 @@ | |||
<ul props="native unreal bp electron unity rn electron cs"> | |||
<li>0: 方法调用成功。</li> | |||
<li>< 0: 方法调用失败。<ph props="cn">详见<xref keyref="error-code-link"/>了解详情和解决建议。</ph> | |||
|
|||
<ul> | |||
<li>-2:传入的参数无效。例如,使用了不合法的 Token。你需要填入有效的参数。</li> |
There was a problem hiding this comment.
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
No description provided.