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

New YiCAT updates #3770

Merged
merged 16 commits into from
Oct 25, 2024
Merged

New YiCAT updates #3770

merged 16 commits into from
Oct 25, 2024

Conversation

Cilla-luodan
Copy link
Collaborator

No description provided.

<pd>The recording object to be destroyed.</pd>
<pt props="android cpp apple framework">mediaRecorder</pt>
<pt props="hmos">recorder</pt>
<pd>待销毁的 <xref keyref="IMediaRecorder" /> 对象。</pd>
Copy link
Collaborator

Choose a reason for hiding this comment

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

中文,是没同步么

Copy link
Collaborator

Choose a reason for hiding this comment

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

刚从链接里删掉这个文件,没点同步。。。

@@ -77,8 +77,8 @@
<p>You can call this method either before or after joining a channel.</p>
</section>
<section id="restriction" deliveryTarget="details">
Copy link
Collaborator

Choose a reason for hiding this comment

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

对于鸿蒙 调用限制这个应该还有“无。”?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

好的我在鸿蒙分支上改一下一起进

@@ -21,7 +21,7 @@
</plentry>
<plentry>
<pt><ph keyref="AUDIO_SCENARIO_CHORUS"/></pt>
<pd>7: Real-time chorus scenario, where users have good network conditions and require ultra-low latency.<note type="attention" props="android hmos" id="chorus">Before using this enumeration, you need to call <xref keyref="getAudioDeviceInfo"/> to see whether the audio device supports ultra-low-latency capture and playback. To experience ultra-low latency, you need to ensure that your audio device supports ultra-low latency (<parmname>isLowLatencyAudioSupported</parmname> = <codeph><ph keyref="true"/></codeph>).</note>
<pd>7: Real-time chorus scenario, where users have good network conditions and require ultra-low latency.<note type="attention" props="android" id="chorus">Before using this enumeration, you need to call <xref keyref="getAudioDeviceInfo"/> to see whether the audio device supports ultra-low-latency capture and playback. To experience ultra-low latency, you need to ensure that your audio device supports ultra-low latency (<parmname>isLowLatencyAudioSupported</parmname> = <codeph><ph keyref="true"/></codeph>).</note>
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

原文就有 x = y 的这种新颖表达方式,英文里是不是一般不这么说?比如:set x to y 之类的写法可能更规范

Copy link
Collaborator

Choose a reason for hiding this comment

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

这个不是你自己去设置的,是sdk返回的,需要sdk的isLowLatencyAudioSupported为true时,才代表你的设备支持ultra low latency

@@ -45,15 +45,15 @@
</note> </section>
<section id="timing" deliveryTarget="details">
<title>Call timing</title>
<p>Call this method before joining a channel. If you need to change the audio route after joining a channel, call <xref keyref="setEnableSpeakerphone"/>.</p>
<p>Call this method before joining a channel. <ph props="android cpp apple framework">If you need to change the audio route after joining a channel, call <xref keyref="setEnableSpeakerphone"/>.</ph></p>
</section>
<section id="restriction" deliveryTarget="details">
<title>Restrictions</title>
<p>None.</p>
</section>
<section id="related" deliveryTarget="details">
Copy link
Collaborator

Choose a reason for hiding this comment

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

相关回调在 hmos 为只有标题的空白 section

Copy link
Collaborator

Choose a reason for hiding this comment

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

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

验证了一下,惊觉不知何时渲染逻辑变了,这里不会出来空 section 了……
image

<li>Call this method after receiving the <xref keyref="onUserJoined"/> callback to set the subscription options for the specified remote user's video stream.</li>
<li>Call the <xref keyref="muteRemoteVideoStream"/> method to resume subscribing to the video stream of the specified remote user. If you set <parmname>encodedFrameOnly</parmname> to <codeph><ph keyref="true"/></codeph> in the previous step, the SDK triggers the <xref keyref="onEncodedVideoFrameReceived"/> callback locally to report the received encoded video frame information.</li>
</ol> </note> </section>
<p>When a remote user has enabled dual-stream mode, you can call this method to choose the option for subscribing to the video streams sent by the remote user. The default subscription behavior of the SDK for remote video streams depends on the registered video observer type:<ul>
Copy link
Collaborator

Choose a reason for hiding this comment

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

depends on the type of registered video observer

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

GPT 说两种表达都可,原文更简洁,不过还是改了

<p>When a remote user has enabled dual-stream mode, you can call this method to choose the option for subscribing to the video streams sent by the remote user. The default subscription behavior of the SDK for remote video streams depends on the registered video observer type:<ul>
<li>If the <xref keyref="IVideoFrameObserver"/> observer is registered, the default is to subscribe to both raw data and encoded data.</li>
<li>If the <xref keyref="IVideoEncodedFrameObserver"/> observer is registered, the default is to subscribe only to the encoded data.</li>
<li>If both types of observers are registered, the default follows the last registered video observer. For example, if the last registered observer is the <apiname keyref="IVideoFrameObserver"/> observer, the default is to subscribe to both raw data and encoded data.</li>
Copy link
Collaborator

Choose a reason for hiding this comment

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

the default behavior follows the last registered observer

<li>If the <xref keyref="IVideoFrameObserver"/> observer is registered, the default is to subscribe to both raw data and encoded data.</li>
<li>If the <xref keyref="IVideoEncodedFrameObserver"/> observer is registered, the default is to subscribe only to the encoded data.</li>
<li>If both types of observers are registered, the default follows the last registered video observer. For example, if the last registered observer is the <apiname keyref="IVideoFrameObserver"/> observer, the default is to subscribe to both raw data and encoded data.</li>
</ul>If you want to modify the default behavior above, or want to set different subscription options for different <codeph>uids</codeph>, you can call this method to set it. <ph props="android cpp apple">For detailed implementation steps, please refer to <xref keyref="video-processing"/>.</ph></p>
Copy link
Collaborator

Choose a reason for hiding this comment

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

If you want to modify the default behavior or set different subscription options

@Cilla-luodan Cilla-luodan merged commit 7ca1e38 into master Oct 25, 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.

4 participants