Skip to content

Commit

Permalink
Sync cn prototype to en prototype
Browse files Browse the repository at this point in the history
  • Loading branch information
Suri539 authored Nov 7, 2024
1 parent 74aa4e4 commit 244cde0
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 27 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
return VIDEO_OBSERVER_FRAME_TYPE.FRAME_TYPE_RGBA;
}</codeblock>
<codeblock props="rn" outputclass="language-typescript"/>
<codeblock props="flutter" outputclass="language-dart"/>
<codeblock props="flutter" outputclass="language-dart"/>
<codeblock props="reserve" outputclass="language-cpp"></codeblock></p>
</section>
<section id="detailed_desc">
Expand Down
45 changes: 19 additions & 26 deletions en-US/dita/RTC-NG/API/class_channelmediarelayconfiguration.dita
Original file line number Diff line number Diff line change
Expand Up @@ -8,60 +8,53 @@
<p outputclass="codeblock">
<codeblock props="android" outputclass="language-java">public class ChannelMediaRelayConfiguration {
private ChannelMediaInfo srcInfo = null;
private Map&lt;String, ChannelMediaInfo> destInfos = null;

private Map&lt;String, ChannelMediaInfo&gt; destInfos = null;
public ChannelMediaRelayConfiguration() {
destInfos = new HashMap&lt;String, ChannelMediaInfo>();
destInfos = new HashMap&lt;String, ChannelMediaInfo&gt;();
srcInfo = new ChannelMediaInfo(null, null, 0);
}

public void setSrcChannelInfo(ChannelMediaInfo srcInfo) {
this.srcInfo = srcInfo;
}

public void setDestChannelInfo(String channelName, ChannelMediaInfo destInfo) {
destInfos.put(channelName, destInfo);
}

public void removeDestChannelInfo(String channelName) {
destInfos.remove(channelName);
}

public ChannelMediaInfo getSrcChannelMediaInfo() {
return srcInfo;
}

public Map&lt;String, ChannelMediaInfo> getDestChannelMediaInfos() {
public Map&lt;String, ChannelMediaInfo&gt; getDestChannelMediaInfos() {
return destInfos;
}
}
</codeblock>
}</codeblock>
<codeblock props="hmos" outputclass="language-arkts">export class ChannelMediaRelayConfiguration {
public srcInfo:ChannelMediaInfo = new ChannelMediaInfo(null,null,0);
public destInfos:Map&lt;string, ChannelMediaInfo&gt; = new Map&lt;string, ChannelMediaInfo&gt;();

public setSrcChannelInfo(srcInfo: ChannelMediaInfo) {
this.srcInfo = srcInfo;
}</codeblock>
<codeblock props="ios mac" outputclass="language-objectivec">__attribute__((visibility("default"))) @interface AgoraChannelMediaRelayConfiguration: NSObject

<codeblock props="ios mac" outputclass="language-objectivec">__attribute__((visibility(&quot;default&quot;))) @interface AgoraChannelMediaRelayConfiguration: NSObject
@property (strong, nonatomic, readonly) NSDictionary&lt;NSString *, AgoraChannelMediaRelayInfo *&gt; *_Nullable destinationInfos;
@property (strong, nonatomic) AgoraChannelMediaRelayInfo *_Nonnull sourceInfo;

- (BOOL)setDestinationInfo:(AgoraChannelMediaRelayInfo *_Nonnull)destinationInfo forChannelName:(NSString *_Nonnull)channelName;
- (BOOL)removeDestinationInfoForChannelName:(NSString *_Nonnull)channelName;
- (BOOL)setDestinationInfo:(AgoraChannelMediaRelayInfo *_Nonnull)destinationInfo forChannelName:(NSString *_Nonnull)channelName NS_SWIFT_NAME(setDestinationInfo(_:forChannelName:));
- (BOOL)removeDestinationInfoForChannelName:(NSString *_Nonnull)channelName NS_SWIFT_NAME(removeDestinationInfo(forChannelName:));
@end</codeblock>
<codeblock props="cpp unreal" outputclass="language-cpp">struct ChannelMediaRelayConfiguration {
ChannelMediaInfo *srcInfo;
ChannelMediaInfo *destInfos;
int destCount;

ChannelMediaRelayConfiguration()
: srcInfo(nullptr)
, destInfos(nullptr)
, destCount(0)
{}
};</codeblock>

ChannelMediaInfo* srcInfo;

ChannelMediaInfo* destInfos;

int destCount;
ChannelMediaRelayConfiguration() : srcInfo(OPTIONAL_NULLPTR), destInfos(OPTIONAL_NULLPTR), destCount(0) {}
};</codeblock>
<codeblock props="bp" outputclass="language-cpp">USTRUCT(BlueprintType)
struct FChannelMediaRelayConfiguration
{
Expand Down

0 comments on commit 244cde0

Please sign in to comment.