Skip to content

Commit 2b0fe09

Browse files
authored
Merge pull request #3857 from AgoraIO/4.5.0-bugfix-1205
4.5.0 bugfix 1205
2 parents cb8d654 + a1f8ed7 commit 2b0fe09

12 files changed

+181
-249
lines changed

dita/RTC-NG/API/callback_irtcengineeventhandler_onuserjoined.dita

+2-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,8 @@
6969
</plentry>
7070
<plentry>
7171
<pt>elapsed</pt>
72-
<pd>从本地用户调用 <apiname keyref="joinChannel2" /> 到该回调触发的延迟(毫秒)。
72+
<pd><ph props="electron flutter rn">从本地用户调用 <apiname keyref="joinChannel2" /> 到该回调触发的延迟(毫秒)。</ph>
73+
<ph props="native bp unity cs unreal">从本地用户调用 <apiname keyref="joinChannel1" /> 或 <apiname keyref="joinChannel2" /> 到该回调触发的延迟(毫秒)。</ph>
7374
</pd>
7475
</plentry>
7576
</parml> </section>

dita/RTC-NG/API/class_canvas.dita

-67
Original file line numberDiff line numberDiff line change
@@ -3,71 +3,4 @@
33
<reference id="class_canvas">
44
<title><ph keyref="Canvas"/></title>
55
<shortdesc id="short"><ph id="shortdesc">该类提供设置播放器视频渲染的方法。</ph></shortdesc>
6-
<refbody>
7-
<section id="prototype">
8-
<p outputclass="codeblock">
9-
<codeblock props="android" outputclass="language-java">public class Canvas {
10-
public Canvas(Rte rte, CanvasInitialConfig config);
11-
public void addView(View view, ViewConfig viewConfig) throws RteException;
12-
public void removeView(View view, ViewConfig viewConfig) throws RteException;
13-
public void getConfigs(CanvasConfig config) throws RteException;
14-
public void setConfigs(CanvasConfig config) throws RteException;
15-
}</codeblock>
16-
<codeblock props="hmos" outputclass="language-arkts"/>
17-
<codeblock props="ios mac" outputclass="language-objectivec">@interface AgoraRteCanvas : NSObject
18-
- (instancetype _Nonnull)initWithRte:(AgoraRte* _Nonnull)rte initialConfig:(AgoraRteCanvasInitialConfig * _Nullable)config;
19-
- (BOOL)getConfigs:(AgoraRteCanvasConfig* _Nonnull)config error:(AgoraRteError* _Nullable)error;
20-
- (BOOL)setConfigs:(AgoraRteCanvasConfig* _Nonnull)config error:(AgoraRteError* _Nullable)error;
21-
- (BOOL)addView:(AgoraRteView * _Nonnull)view config:(AgoraRteViewConfig* _Nullable)config error:(AgoraRteError* _Nullable)error;
22-
- (BOOL)removeView:(AgoraRteView * _Nonnull)view config:(AgoraRteViewConfig* _Nullable)config error:(AgoraRteError* _Nullable)error;
23-
@end</codeblock>
24-
<codeblock props="cpp unreal" outputclass="language-cpp">class Canvas {
25-
public:
26-
Canvas(Rte *rte, CanvasInitialConfig *initial_config);
27-
bool GetConfigs(CanvasConfig *config, Error *err);
28-
bool SetConfigs(CanvasConfig *config, Error *err);
29-
bool AddView(View *view, ViewConfig *config, rte::Error *err)
30-
bool RemoveView(View *view, ViewConfig *config, rte::Error *err);
31-
32-
};</codeblock>
33-
<codeblock props="bp" outputclass="language-cpp"/>
34-
<codeblock props="electron" outputclass="language-typescript"/>
35-
<codeblock props="unity cs" outputclass="language-csharp"/>
36-
<codeblock props="rn" outputclass="language-typescript"/>
37-
<codeblock props="flutter" outputclass="language-dart"/> </p>
38-
</section>
39-
<section id="detailed_desc">
40-
<dl outputclass="since">
41-
<dlentry props="native">
42-
<dt>自从</dt>
43-
<dd>v4.5.0</dd>
44-
</dlentry>
45-
</dl>
46-
<p/>
47-
</section>
48-
<section id="sub-method">
49-
<title>方法</title>
50-
<parml>
51-
<plentry>
52-
<pt><ph keyref="Canvas_Canvas"/></pt>
53-
<pd>构造一个 Canvas 对象。详见 <xref keyref="Canvas_Canvas"/>。</pd>
54-
</plentry>
55-
<plentry>
56-
<pt><ph keyref="SetConfigs_Canvas"/></pt>
57-
<pd>设置视频的渲染模式。详见 <xref keyref="SetConfigs_Canvas"/>。</pd>
58-
</plentry>
59-
<plentry>
60-
<pt><ph keyref="GetConfigs_Canvas"/></pt>
61-
<pd>获取当前设置的视频渲染模式。详见 <xref keyref="GetConfigs_Canvas"/>。</pd>
62-
</plentry>
63-
<plentry>
64-
<pt><ph keyref="AddView"/></pt>
65-
<pd>添加一个视图。详见 <xref keyref="AddView"/>。</pd>
66-
</plentry>
67-
<plentry>
68-
<pt><ph keyref="RemoveView"/></pt>
69-
<pd>移除一个视图。详见 <xref keyref="RemoveView"/>。</pd>
70-
</plentry>
71-
</parml> </section>
72-
</refbody>
736
</reference>

dita/RTC-NG/API/rtc_api_data_type.dita

+48-46
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
<li><xref keyref="BeautyOptions"/></li>
2323
<li><xref keyref="CameraCapturerConfiguration"/></li>
2424
<li><xref keyref="CacheStatistics"/></li>
25-
<li><xref keyref="CanvasConfig"/></li>
25+
<li props="cn"><xref keyref="CanvasConfig"/></li>
2626
<li><xref keyref="ChannelMediaInfo"/></li>
2727
<li><xref keyref="ChannelMediaOptions"/></li>
2828
<li><xref keyref="ChannelMediaRelayConfiguration"/></li>
@@ -31,7 +31,7 @@
3131
<li><xref keyref="ColorEnhanceOptions"/></li>
3232
<li><xref keyref="CodecCapInfo"/></li>
3333
<li><xref keyref="CodecCapLevels"/></li>
34-
<li><xref keyref="Config"/></li>
34+
<li props="cn"><xref keyref="Config"/></li>
3535
<li><xref keyref="ContentInspectConfig"/></li>
3636
<li><xref keyref="ContentInspectModule"/></li>
3737
<li><xref keyref="DataStreamConfig"/></li>
@@ -42,7 +42,7 @@
4242
<li><xref keyref="EncodedAudioFrameInfo"/></li>
4343
<li><xref keyref="EncodedVideoFrameInfo"/></li>
4444
<li><xref keyref="EncryptionConfig"/></li>
45-
<li><xref keyref="Error"/></li>
45+
<li props="cn"><xref keyref="Error"/></li>
4646
<li><xref keyref="ExtensionContext"/></li>
4747
<li><xref keyref="ExternalVideoFrame"/></li>
4848
<li props="cn"><xref keyref="FaceShapeAreaOptions"/></li>
@@ -90,6 +90,7 @@
9090
<li props="cn"><xref keyref="MusicContentCenterConfiguration"/></li>
9191
<li props="hide"><xref keyref="MvProperty"/></li>
9292
<li><xref keyref="Packet"/></li>
93+
<li props="cn"><xref keyref="PlayerConfig"/></li>
9394
<li><xref keyref="PlayerPlaybackStats"/></li>
9495
<li><xref keyref="PlayerStreamInfo"/></li>
9596
<li><xref keyref="PlayerUpdatedInfo"/></li>
@@ -104,8 +105,8 @@
104105
<li><xref keyref="RtcConnection"/></li>
105106
<li><xref keyref="RtcImage"/></li>
106107
<li><xref keyref="RtcStats"/></li>
107-
<li><xref keyref="RtePlayerInfo"/></li>
108-
<li><xref keyref="RtePlayerStats"/></li>
108+
<li props="cn"><xref keyref="RtePlayerInfo"/></li>
109+
<li props="cn"><xref keyref="RtePlayerStats"/></li>
109110
<li><xref keyref="ScreenCaptureConfiguration"/></li>
110111
<li><xref keyref="ScreenCaptureParameters"/></li>
111112
<li><xref keyref="ScreenCaptureParameters2"/></li>
@@ -154,7 +155,7 @@
154155
<li><xref keyref="BeautyOptions"/></li>
155156
<li><xref keyref="CacheStatistics"/></li>
156157
<li><xref keyref="CameraCapturerConfiguration"/></li>
157-
<li><xref keyref="CanvasConfig"/></li>
158+
<li props="cn"><xref keyref="CanvasConfig"/></li>
158159
<li><xref keyref="ChannelMediaInfo"/></li>
159160
<li><xref keyref="ChannelMediaOptions"/></li>
160161
<li><xref keyref="ChannelMediaRelayConfiguration"/>
@@ -173,19 +174,18 @@
173174
<li><xref keyref="ContentInspectModule"/></li>
174175
<li><xref keyref="ClientRoleOptions"/></li>
175176
<li props="cn"><xref keyref="ClimaxSegment"/></li>
176-
<li><xref keyref="CanvasConfig"/></li>
177177
<li><xref keyref="CodecCapInfo"/></li>
178178
<li><xref keyref="CodecCapLevels"/></li>
179179
<li><xref keyref="ColorEnhanceOptions"/></li>
180-
<li><xref keyref="Config"/></li>
180+
<li props="cn"><xref keyref="Config"/></li>
181181
<li><xref keyref="DataStreamConfig"/></li>
182182
<li><xref keyref="DeviceInfo"/></li>
183183
<li><xref keyref="DirectCdnStreamingMediaOptions"/></li>
184184
<li><xref keyref="DirectCdnStreamingStats"/></li>
185185
<li><xref keyref="EchoTestConfiguration"/></li>
186186
<li><xref keyref="EncodedVideoFrameInfo"/></li>
187187
<li><xref keyref="EncryptionConfig"/></li>
188-
<li><xref keyref="Error"/></li>
188+
<li props="cn"><xref keyref="Error"/></li>
189189
<li><xref keyref="ExtensionContext"/></li>
190190
<li><xref keyref="ExternalVideoFrame"/></li>
191191
<li props="cn"><xref keyref="FaceShapeAreaOptions"/></li>
@@ -237,6 +237,7 @@
237237
<li><xref keyref="Metadata"/></li>
238238
<li><xref keyref="MixedAudioStream"/></li>
239239
<li props="cn"><xref keyref="MusicCacheInfo"/></li>
240+
<li props="cn"><xref keyref="PlayerConfig"/></li>
240241
<li><xref keyref="PlayerPlaybackStats"/></li>
241242
<li><xref keyref="PlayerStreamInfo"/></li>
242243
<li><xref keyref="PlayerUpdatedInfo"/></li>
@@ -253,10 +254,9 @@
253254
<li><xref keyref="RtcConnection"/></li>
254255
<li><xref keyref="RtcImage"/></li>
255256
<li><xref keyref="RtcStats"/></li>
256-
<li><xref keyref="RteErrorCode"/></li>
257-
<li><xref keyref="RteException"/></li>
258-
<li><xref keyref="RtePlayerInfo"/></li>
259-
<li><xref keyref="RtePlayerStats"/></li>
257+
<li props="cn"><xref keyref="RteException"/></li>
258+
<li props="cn"><xref keyref="RtePlayerInfo"/></li>
259+
<li props="cn"><xref keyref="RtePlayerStats"/></li>
260260
<li><xref keyref="ScreenCaptureParameters2"/></li>
261261
<li><xref keyref="ScreenAudioParameters"/></li>
262262
<li><xref keyref="ScreenVideoParameters"/></li>
@@ -399,7 +399,7 @@
399399
<li><xref keyref="BeautyOptions"/></li>
400400
<li><xref keyref="CameraCapturerConfiguration"/></li>
401401
<li><xref keyref="CacheStatistics"/></li>
402-
<li><xref keyref="CanvasConfig"/></li>
402+
<li props="cn"><xref keyref="CanvasConfig"/></li>
403403
<li><xref keyref="ChannelMediaInfo"/></li>
404404
<li><xref keyref="ChannelMediaOptions"/></li>
405405
<li><xref keyref="ChannelMediaRelayConfiguration"/>
@@ -412,7 +412,7 @@
412412
<li><xref keyref="ColorEnhanceOptions"/></li>
413413
<li><xref keyref="CodecCapInfo"/></li>
414414
<li><xref keyref="CodecCapLevels"/></li>
415-
<li><xref keyref="Config"/></li>
415+
<li props="cn"><xref keyref="Config"/></li>
416416
<li><xref keyref="ContentInspectConfig"/></li>
417417
<li><xref keyref="ContentInspectModule"/></li>
418418
<li><xref keyref="DataStreamConfig"/></li>
@@ -422,7 +422,7 @@
422422
<li><xref keyref="EncodedAudioFrameInfo"/></li>
423423
<li><xref keyref="EncodedVideoFrameInfo"/></li>
424424
<li><xref keyref="EncryptionConfig"/></li>
425-
<li><xref keyref="Error"/></li>
425+
<li props="cn"><xref keyref="Error"/></li>
426426
<li><xref keyref="ExtensionContext"/></li>
427427
<li><xref keyref="ExternalVideoFrame"/></li>
428428
<li props="cn"><xref keyref="FaceShapeAreaOptions"/></li>
@@ -461,6 +461,7 @@
461461
<li props="cn"><xref keyref="MusicCollection"/></li>
462462
<li props="cn"><xref keyref="MusicContentCenterConfiguration"/></li>
463463
<li props="hide"><xref keyref="MvProperty"/></li>
464+
<li props="cn"><xref keyref="PlayerConfig"/></li>
464465
<li><xref keyref="PlayerStreamInfo"/></li>
465466
<li><xref keyref="PlayerPlaybackStats"/></li>
466467
<li><xref keyref="PlayerUpdatedInfo"/></li>
@@ -473,8 +474,8 @@
473474
<li><xref keyref="RtcConnection"/></li>
474475
<li><xref keyref="RtcImage"/></li>
475476
<li><xref keyref="RtcStats"/></li>
476-
<li><xref keyref="RtePlayerInfo"/></li>
477-
<li><xref keyref="RtePlayerStats"/></li>
477+
<li props="cn"><xref keyref="RtePlayerInfo"/></li>
478+
<li props="cn"><xref keyref="RtePlayerStats"/></li>
478479
<li><xref keyref="ScreenCaptureParameters2"/></li>
479480
<li><xref keyref="ScreenAudioParameters"/></li>
480481
<li><xref keyref="ScreenVideoParameters"/></li>
@@ -518,7 +519,7 @@
518519
<li><xref keyref="BeautyOptions"/></li>
519520
<li><xref keyref="CameraCapturerConfiguration"/></li>
520521
<li><xref keyref="CacheStatistics"/></li>
521-
<li><xref keyref="CanvasConfig"/></li>
522+
<li props="cn"><xref keyref="CanvasConfig"/></li>
522523
<li><xref keyref="ChannelMediaInfo"/></li>
523524
<li><xref keyref="ChannelMediaOptions"/></li>
524525
<li><xref keyref="ChannelMediaRelayConfiguration"/>
@@ -530,7 +531,7 @@
530531
<li><xref keyref="ColorEnhanceOptions"/></li>
531532
<li><xref keyref="CodecCapInfo"/></li>
532533
<li><xref keyref="CodecCapLevels"/></li>
533-
<li><xref keyref="Config"/></li>
534+
<li props="cn"><xref keyref="Config"/></li>
534535
<li><xref keyref="ContentInspectConfig"/></li>
535536
<li><xref keyref="ContentInspectModule"/></li>
536537
<li><xref keyref="DataStreamConfig"/></li>
@@ -540,7 +541,7 @@
540541
<li><xref keyref="EncodedAudioFrameInfo"/></li>
541542
<li><xref keyref="EncodedVideoFrameInfo"/></li>
542543
<li><xref keyref="EncryptionConfig"/></li>
543-
<li><xref keyref="Error"/></li>
544+
<li props="cn"><xref keyref="Error"/></li>
544545
<li><xref keyref="ExtensionContext"/></li>
545546
<li><xref keyref="ExternalVideoFrame"/></li>
546547
<li props="cn"><xref keyref="FaceShapeAreaOptions"/></li>
@@ -574,6 +575,7 @@
574575
<li><xref keyref="MixedAudioStream"/></li>
575576
<li><xref keyref="Metadata"/></li>
576577
<li><xref keyref="MediaSource"/></li>
578+
<li props="cn"><xref keyref="PlayerConfig"/></li>
577579
<li><xref keyref="PlayerPlaybackStats"/></li>
578580
<li><xref keyref="PlayerStreamInfo"/></li>
579581
<li><xref keyref="PlayerUpdatedInfo"/></li>
@@ -586,8 +588,8 @@
586588
<li><xref keyref="RtcConnection"/></li>
587589
<li><xref keyref="RtcImage"/></li>
588590
<li><xref keyref="RtcStats"/></li>
589-
<li><xref keyref="RtePlayerInfo"/></li>
590-
<li><xref keyref="RtePlayerStats"/></li>
591+
<li props="cn"><xref keyref="RtePlayerInfo"/></li>
592+
<li props="cn"><xref keyref="RtePlayerStats"/></li>
591593
<li><xref keyref="ScreenCaptureConfiguration"/></li>
592594
<li><xref keyref="ScreenCaptureSourceInfo"/></li>
593595
<li><xref keyref="ScreenCaptureParameters"/></li>
@@ -1320,12 +1322,12 @@
13201322
<li><xref keyref="RHYTHM_PLAYER_STATE_TYPE"/></li>
13211323
<li props="cn"><xref keyref="RteAbrFallbackLayer"/></li>
13221324
<li props="cn"><xref keyref="RteAbrSubscriptionLayer"/></li>
1323-
<li><xref keyref="RteErrorCode"/></li>
1324-
<li><xref keyref="RtePlayerMetadataType"/></li>
1325-
<li><xref keyref="RtePlayerEvent"/></li>
1326-
<li><xref keyref="RtePlayerState"/></li>
1327-
<li><xref keyref="RteVideoMirrorMode"/></li>
1328-
<li><xref keyref="RteVideoRenderMode"/></li>
1325+
<li props="cn"><xref keyref="RteErrorCode"/></li>
1326+
<li props="cn"><xref keyref="RtePlayerMetadataType"/></li>
1327+
<li props="cn"><xref keyref="RtePlayerEvent"/></li>
1328+
<li props="cn"><xref keyref="RtePlayerState"/></li>
1329+
<li props="cn"><xref keyref="RteVideoMirrorMode"/></li>
1330+
<li props="cn"><xref keyref="RteVideoRenderMode"/></li>
13291331
<li><xref keyref="RTMP_STREAM_LIFE_CYCLE_TYPE"/></li>
13301332
<li><xref keyref="RTMP_STREAM_PUBLISH_REASON"/></li>
13311333
<li><xref keyref="RTMP_STREAM_PUBLISH_STATE"/></li>
@@ -1404,11 +1406,11 @@
14041406
<li props="cn"><xref keyref="PreloadState"/></li>
14051407
<li props="cn"><xref keyref="RteAbrFallbackLayer"/></li>
14061408
<li props="cn"><xref keyref="RteAbrSubscriptionLayer"/></li>
1407-
<li><xref keyref="RteErrorCode"/></li>
1408-
<li><xref keyref="RtePlayerEvent"/></li>
1409-
<li><xref keyref="RtePlayerState"/></li>
1410-
<li><xref keyref="RteVideoMirrorMode"/></li>
1411-
<li><xref keyref="RteVideoRenderMode"/></li>
1409+
<li props="cn"><xref keyref="RteErrorCode"/></li>
1410+
<li props="cn"><xref keyref="RtePlayerEvent"/></li>
1411+
<li props="cn"><xref keyref="RtePlayerState"/></li>
1412+
<li props="cn"><xref keyref="RteVideoMirrorMode"/></li>
1413+
<li props="cn"><xref keyref="RteVideoRenderMode"/></li>
14121414
<li><xref keyref="SCREEN_SCENARIO_TYPE"/></li>
14131415
<li><xref keyref="STREAM_FALLBACK_OPTIONS"/></li>
14141416
<li><xref keyref="STREAM_PUBLISH_STATE"/></li>
@@ -1571,12 +1573,12 @@
15711573
<li><xref keyref="RHYTHM_PLAYER_STATE_TYPE"/></li>
15721574
<li props="cn"><xref keyref="RteAbrFallbackLayer"/></li>
15731575
<li props="cn"><xref keyref="RteAbrSubscriptionLayer"/></li>
1574-
<li><xref keyref="RteErrorCode"/></li>
1575-
<li><xref keyref="RtePlayerMetadataType"/></li>
1576-
<li><xref keyref="RtePlayerEvent"/></li>
1577-
<li><xref keyref="RtePlayerState"/></li>
1578-
<li><xref keyref="RteVideoMirrorMode"/></li>
1579-
<li><xref keyref="RteVideoRenderMode"/></li>
1576+
<li props="cn"><xref keyref="RteErrorCode"/></li>
1577+
<li props="cn"><xref keyref="RtePlayerMetadataType"/></li>
1578+
<li props="cn"><xref keyref="RtePlayerEvent"/></li>
1579+
<li props="cn"><xref keyref="RtePlayerState"/></li>
1580+
<li props="cn"><xref keyref="RteVideoMirrorMode"/></li>
1581+
<li props="cn"><xref keyref="RteVideoRenderMode"/></li>
15801582
<li><xref keyref="RTMP_STREAM_LIFE_CYCLE_TYPE"/></li>
15811583
<li><xref keyref="RTMP_STREAM_PUBLISH_REASON"/></li>
15821584
<li><xref keyref="RTMP_STREAM_PUBLISH_STATE"/></li>
@@ -1711,12 +1713,12 @@
17111713
<li><xref keyref="RHYTHM_PLAYER_STATE_TYPE"/></li>
17121714
<li props="cn"><xref keyref="RteAbrFallbackLayer"/></li>
17131715
<li props="cn"><xref keyref="RteAbrSubscriptionLayer"/></li>
1714-
<li><xref keyref="RteErrorCode"/></li>
1715-
<li><xref keyref="RtePlayerMetadataType"/></li>
1716-
<li><xref keyref="RtePlayerEvent"/></li>
1717-
<li><xref keyref="RtePlayerState"/></li>
1718-
<li><xref keyref="RteVideoMirrorMode"/></li>
1719-
<li><xref keyref="RteVideoRenderMode"/></li>
1716+
<li props="cn"><xref keyref="RteErrorCode"/></li>
1717+
<li props="cn"><xref keyref="RtePlayerMetadataType"/></li>
1718+
<li props="cn"><xref keyref="RtePlayerEvent"/></li>
1719+
<li props="cn"><xref keyref="RtePlayerState"/></li>
1720+
<li props="cn"><xref keyref="RteVideoMirrorMode"/></li>
1721+
<li props="cn"><xref keyref="RteVideoRenderMode"/></li>
17201722
<li><xref keyref="RTMP_STREAM_LIFE_CYCLE_TYPE"/></li>
17211723
<li><xref keyref="RTMP_STREAM_PUBLISH_REASON"/></li>
17221724
<li><xref keyref="RTMP_STREAM_PUBLISH_STATE"/></li>

0 commit comments

Comments
 (0)