Skip to content

Commit

Permalink
+
Browse files Browse the repository at this point in the history
  • Loading branch information
jinyuagora committed Jul 11, 2024
1 parent 1b20ab4 commit 9e996bb
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 14 deletions.
15 changes: 14 additions & 1 deletion dita/RTC-NG/config/keys-rtc-ng-api-java.ditamap
Original file line number Diff line number Diff line change
Expand Up @@ -2589,7 +2589,13 @@
</keywords>
</topicmeta>
</keydef>
<keydef keys="enableDualStreamMode2" href="../API/api_irtcengine_enabledualstreammode2.dita"/>
<keydef keys="enableDualStreamMode2" href="../API/api_irtcengine_enabledualstreammode2.dita">
<topicmeta>
<keywords>
<keyword>enableDualStreamMode</keyword>
</keywords>
</topicmeta>
</keydef>
<keydef keys="enableDualStreamMode3" href="../API/api_irtcengine_enabledualstreammode3.dita">
<topicmeta>
<keywords>
Expand Down Expand Up @@ -5286,6 +5292,13 @@
</keywords>
</topicmeta>
</keydef>
<keydef keys="ScreenCaptureParameters" href="../API/class_screencaptureparameters.dita">
<topicmeta>
<keywords>
<keyword>ScreenCaptureParameters</keyword>
</keywords>
</topicmeta>
</keydef>
<keydef keys="ScreenCaptureParameters2" href="../API/class_screencaptureparameters2.dita">
<topicmeta>
<keywords>
Expand Down
21 changes: 11 additions & 10 deletions dita/RTC-NG/release/release_notes.dita
Original file line number Diff line number Diff line change
Expand Up @@ -20,19 +20,19 @@
<stentry>现有回调</stentry>
</sthead>
<strow>
<stentry>onExtensionEvent</stentry>
<stentry><codeph>onExtensionEvent</codeph></stentry>
<stentry><codeph><apiname keyref="onExtensionEventWithContext"/></codeph></stentry>
</strow>
<strow>
<stentry>onExtensionStarted</stentry>
<stentry><codeph>onExtensionStarted</codeph></stentry>
<stentry><codeph><apiname keyref="onExtensionStartedWithContext"/></codeph></stentry>
</strow>
<strow>
<stentry>onExtensionStopped</stentry>
<stentry><codeph>onExtensionStopped</codeph></stentry>
<stentry><codeph><apiname keyref="onExtensionStoppedWithContext"/></codeph></stentry>
</strow>
<strow>
<stentry>onExtensionError</stentry>
<stentry><codeph>onExtensionError</codeph></stentry>
<stentry><codeph><apiname keyref="onExtensionErrorWithContext"/></codeph></stentry>
</strow>
</simpletable>
Expand Down Expand Up @@ -64,13 +64,13 @@
<p>另外,<codeph><apiname keyref="AdvanceOptions"/></codeph> 中新增成员 <codeph>encodeAlpha</codeph>,用于设置是否将 Alpha 信息编码并发送到远端。SDK 默认不对 Alpha 信息进行编码发送;如果需要对 Alpha 信息编码发送至远端(例如开启了虚拟背景功能),请显式调用 <codeph><apiname keyref="setVideoEncoderConfiguration"/></codeph> 设置视频编码属性,并将 <codeph>encodeAlpha</codeph> 设置为 <codeph><ph keyref="true"/></codeph>。</p>
</li>
<li><ph><b>AI 调音器</b></ph>
<p>该版本新增 AI 调音器功能,可以实现类似物理声卡对音质和音色的提升。你可以通过调用 <codeph><apiname keyref="setVoiceAITuner"/></codeph> 方法并传入 <codeph><apiname keyref="VOICE_AI_TUNER_TYPE"/></codeph> 枚举中支持的音效类型来启用 AI 调音器功能,实现大叔音、萝莉音、烟嗓歌声等声音效果。</p>
<p>该版本新增 AI 调音器功能,可以实现类似物理声卡对音质和音色的提升。你可以通过调用 <codeph><apiname keyref="enableVoiceAITuner"/></codeph> 方法并传入 <codeph><apiname keyref="VOICE_AI_TUNER_TYPE"/></codeph> 枚举中支持的音效类型来启用 AI 调音器功能,实现大叔音、萝莉音、烟嗓歌声等声音效果。</p>
</li>
<li props="ios android"><ph><b>版权音乐优化</b></ph>
<ul>
<li>该版本在 <apiname keyref="IMusicPlayer"></apiname> 类下新增 <codeph><apiname keyref="setPlayMode"/></codeph> 方法,用于设置音乐资源的播放模式。在在线 K 歌房等场景下,你可以根据需求启用伴唱、原唱或导唱模式。</li>
<li>该版本在 <codeph><apiname keyref="IMusicPlayer"/></codeph> 类下新增 <codeph><apiname keyref="setPlayMode"/></codeph> 方法,用于设置音乐资源的播放模式。在在线 K 歌房等场景下,你可以根据需求启用伴唱、原唱或导唱模式。</li>
<li props="ios">该版本在 <codeph><apiname keyref="IMusicContentCenter"/></codeph> 类下新增 <codeph><apiname keyref="destroyMusicPlayer"/></codeph> 方法,用于销毁音乐播放器并释放相应的资源。</li>
<li props="android">该版本废弃了 <apiname keyref="IMusicPlayer"></apiname> 类下的 <codeph><apiname keyref="destroy_IMusicPlayer"/></codeph> 方法。如需销毁音乐播放器,请改用<codeph><apiname keyref="IMusicContentCenter"/></codeph> 类下新增 <codeph><apiname keyref="destroyMusicPlayer"/></codeph> 方法。</li>
<li props="android">该版本废弃了 <codeph><apiname keyref="IMusicPlayer"/></codeph> 类下的 <codeph><apiname keyref="destroy_IMusicPlayer"/></codeph> 方法。如需销毁音乐播放器,请改用<codeph><apiname keyref="IMusicContentCenter"/></codeph> 类下新增 <codeph><apiname keyref="destroyMusicPlayer"/></codeph> 方法。</li>
</ul>
</li>
</ol>
Expand All @@ -97,9 +97,10 @@
<li props="mac electron unity flutter unreal bp">优化了共享窗口的视频链路,降低了 CPU 占用率。(macOS) </li>
<li props="cpp unity flutter electron unreal">优化了屏幕共享场景下的回声消除。</li>
<li props="cpp framework">该版本在 <codeph><apiname keyref="Metadata"/></codeph> 中新增 <codeph>channelId</codeph> 参数,用于获取发送 Metadata 的源频道名称。</li>
<li>废弃了 <codeph><apiname keyref="CLIENT_ROLE_CHANGE_FAILED_REASON"/></codeph> 中的冗余枚举值 <codeph><apiname keyref="CLIENT_ROLE_CHANGE_FAILED_REQUEST_TIME_OUT"/></codeph>、<codeph><apiname keyref="CLIENT_ROLE_CHANGE_FAILED_CONNECTION_FAILED"/></codeph>。</li>
<li props="apple cpp framework">废弃了 <codeph><apiname keyref="CLIENT_ROLE_CHANGE_FAILED_REASON"/></codeph> 中的冗余枚举值 <codeph><apiname keyref="CLIENT_ROLE_CHANGE_FAILED_REQUEST_TIME_OUT"/></codeph>、<codeph><apiname keyref="CLIENT_ROLE_CHANGE_FAILED_CONNECTION_FAILED"/></codeph>。</li>
<li props="android">废弃了冗余枚举值 <codeph><apiname keyref="CLIENT_ROLE_CHANGE_FAILED_REQUEST_TIME_OUT"/></codeph>、<codeph><apiname keyref="CLIENT_ROLE_CHANGE_FAILED_CONNECTION_FAILED"/></codeph>。</li>
<li props="android">优化了以下 API 的参数类型。此改进有助于提升代码的可读性,减少潜在的错误,并便于后续维护。<ul>
<li>废弃了 <codeph>option</codeph> 参数为 int 类型的 <codeph><apiname keyref="setRemoteSubscribeFallbackOption"/></codeph>,新增了 <codeph>option</codeph> 参数为 <codeph><apiname keyref="STREAM_FALLBACK_OPTIONS"/></codeph> 类型的重载函数 <codeph><apiname keyref="setRemoteSbscribeFallbackOption2"/></codeph>。</li>
<li>废弃了 <codeph>option</codeph> 参数为 int 类型的 <codeph><apiname keyref="setRemoteSubscribeFallbackOption"/></codeph>,新增了 <codeph>option</codeph> 参数为 <codeph><apiname keyref="STREAM_FALLBACK_OPTIONS"/></codeph> 类型的重载函数 <codeph><apiname keyref="setRemoteSubscribeFallbackOption2"/></codeph>。</li>
<li>废弃了 <codeph>streamType</codeph> 参数为 int 类型的 <codeph><apiname keyref="setRemoteVideoStreamType"/></codeph>、<codeph><apiname keyref="setRemoteDefaultVideoStreamType"/></codeph>、<codeph><apiname keyref="setRemoteVideoStreamTypeEx"/></codeph>,新增了 <codeph>streamType</codeph> 参数为 <codeph><apiname keyref="VIDEO_STREAM_TYPE"/></codeph> 类型的重载函数 <codeph><apiname keyref="setRemoteVideoStreamType2"/></codeph>、<codeph><apiname keyref="setRemoteDefaultVideoStreamType2"/></codeph>、<codeph><apiname keyref="setRemoteVideoStreamTypeEx2"/></codeph>。</li></ul></li>
</ul></p>
</li>
Expand All @@ -114,7 +115,7 @@
<li props="ios rn unity flutter unreal bp">在实时互动过程中,当多个远端同时加入频道时 App 偶现崩溃。(iOS)</li>
<li props="ios rn unity flutter unreal bp">App 切后台一段时间、然后返回前台时,远端视频画面偶现卡住或花屏。(iOS)</li>
<li props="ios rn unity flutter unreal bp">发送端调用 <codeph><apiname keyref="startDirectCdnStreaming"/></codeph> 开始直接向 CDN 推流后,频繁开关或切换网络,偶现接收端黑屏但发送端未收到推流失败回调。(iOS)</li>
<li props="android ios unity flutter rn unreal bp">调用 <xref keyref="pushAudioFrame" props="unity flutter rn unreal bp"/><xref keyref="pushAudioFrame2" props="android ios"/> 推送外部音频数据,外部音频渲染的采样率如果不是 SDK 推荐的值时,比如 22050 Hz 和 11025 Hz,声音播放失败。</li>
<li props="android ios unity flutter rn unreal bp">调用 <codeph><apiname keyref="pushAudioFrame" props="unity flutter rn unreal bp"/><apiname keyref="pushAudioFrame2" props="android ios"/></codeph> 推送外部音频数据,外部音频渲染的采样率如果不是 SDK 推荐的值时,比如 22050 Hz 和 11025 Hz,声音播放失败。</li>
</ul>
</body>
</topic>
Expand Down
7 changes: 4 additions & 3 deletions en-US/dita/RTC-NG/release/release_notes.dita
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
<p>Additionally, <apiname keyref="AdvanceOptions"/> adds a new member <codeph>encodeAlpha</codeph>, which is used to set whether to encode and send Alpha information to the remote end. By default, the SDK does not encode and send Alpha information; if you need to encode and send Alpha information to the remote end (for example, when virtual background is enabled), explicitly call <apiname keyref="setVideoEncoderConfiguration"/> to set the video encoding properties and set <codeph>encodeAlpha</codeph> to <codeph><ph keyref="true"/></codeph>.</p>
</li>
<li><ph><b>AI Voice Tuner</b></ph>
<p>This version introduces the AI Voice Tuner feature, which can enhance the sound quality and tone, similar to a physical sound card. You can enable the AI Voice Tuner feature by calling the <apiname keyref="setVoiceAITuner"/> method and passing in the sound effect types supported in the <apiname keyref="VOICE_AI_TUNER_TYPE"/> enum to achieve effects like deep voice, cute voice, husky singing voice, etc.</p>
<p>This version introduces the AI Voice Tuner feature, which can enhance the sound quality and tone, similar to a physical sound card. You can enable the AI Voice Tuner feature by calling the <apiname keyref="enableVoiceAITuner"/> method and passing in the sound effect types supported in the <apiname keyref="VOICE_AI_TUNER_TYPE"/> enum to achieve effects like deep voice, cute voice, husky singing voice, etc.</p>
</li>
</ol>
</body>
Expand All @@ -88,15 +88,16 @@
<ul>
<li props="android">Optimized parameter types for the following APIs to enhance code readability, reduce potential errors, and facilitate future maintenance:
<ul>
<li>Deprecated <codeph>option</codeph> parameter of type int in <apiname keyref="setRemoteSubscribeFallbackOption"/>, introduced overloaded function <apiname keyref="setRemoteSbscribeFallbackOption2"/> with <codeph>option</codeph> parameter of type <apiname keyref="STREAM_FALLBACK_OPTIONS"/>.</li>
<li>Deprecated <codeph>option</codeph> parameter of type int in <apiname keyref="setRemoteSubscribeFallbackOption"/>, introduced overloaded function <apiname keyref="setRemoteSubscribeFallbackOption2"/> with <codeph>option</codeph> parameter of type <apiname keyref="STREAM_FALLBACK_OPTIONS"/>.</li>
<li>Deprecated <codeph>streamType</codeph> parameter of type int in <apiname keyref="setRemoteVideoStreamType"/>, <apiname keyref="setRemoteDefaultVideoStreamType"/>, and <apiname keyref="setRemoteVideoStreamTypeEx"/>, introduced overloaded functions <apiname keyref="setRemoteVideoStreamType2"/>, <apiname keyref="setRemoteDefaultVideoStreamType2"/>, and <apiname keyref="setRemoteVideoStreamTypeEx2"/> with <codeph>streamType</codeph> parameter of type <apiname keyref="VIDEO_STREAM_TYPE"/>.</li>
</ul></li>
<li>Optimized transmission strategy: calling <apiname keyref="enableInstantMediaRendering"/> no longer impacts the security of the transmission link.</li>
<li props="cpp mac electron unity flutter unreal bp">The <apiname keyref="LOCAL_VIDEO_STREAM_REASON_SCREEN_CAPTURE_DISPLAY_DISCONNECTED"/> enumerator is added in <apiname keyref="onLocalVideoStateChanged"/> callback , indicating that the display used for screen capture has been disconnected. (Windows, macOS)</li>
<li props="mac electron unity flutter unreal bp">Optimized the video link for window sharing, reducing CPU usage. (macOS)</li>
<li props="cpp unity flutter electron unreal">Improved echo cancellation for screen sharing scenarios.</li>
<li props="cpp framework">Added the <codeph>channelId</codeph> parameter to <apiname keyref="Metadata"/>, which is used to get the channel name from which the metadata is sent.</li>
<li>Deprecated redundant enumeration values <apiname keyref="CLIENT_ROLE_CHANGE_FAILED_REQUEST_TIME_OUT"/> and <apiname keyref="CLIENT_ROLE_CHANGE_FAILED_CONNECTION_FAILED"/> in <apiname keyref="CLIENT_ROLE_CHANGE_FAILED_REASON"/>.</li>
<li props="apple cpp framework">Deprecated redundant enumeration values <apiname keyref="CLIENT_ROLE_CHANGE_FAILED_REQUEST_TIME_OUT"/> and <apiname keyref="CLIENT_ROLE_CHANGE_FAILED_CONNECTION_FAILED"/> in <apiname keyref="CLIENT_ROLE_CHANGE_FAILED_REASON"/>.</li>
<li props="android">Deprecated redundant enumeration values <apiname keyref="CLIENT_ROLE_CHANGE_FAILED_REQUEST_TIME_OUT"/> and <apiname keyref="CLIENT_ROLE_CHANGE_FAILED_CONNECTION_FAILED"/>.</li>
</ul></p>
</li>
</ol>
Expand Down

0 comments on commit 9e996bb

Please sign in to comment.