+ - 在 Android 平台上,默认的视频帧类型可能为 I420Buffer 或 TextureBuffer。视频帧类型固定为 I420Buffer 的情况包括但不限于:
- 特定机型,例如:LG G5 SE (H848),Google Pixel 4a,Samsung Galaxy A7 或 Xiaomi Mi Max。
- 已集成视频增强插件并开启视频降噪或暗光增强功能。
diff --git a/dita/RTC-NG/API/class_channelmediarelayconfiguration.dita b/dita/RTC-NG/API/class_channelmediarelayconfiguration.dita
index eb5d3ac69cf..9f9d9537df9 100644
--- a/dita/RTC-NG/API/class_channelmediarelayconfiguration.dita
+++ b/dita/RTC-NG/API/class_channelmediarelayconfiguration.dita
@@ -8,34 +8,31 @@
public class ChannelMediaRelayConfiguration {
private ChannelMediaInfo srcInfo = null;
- private Map<String, ChannelMediaInfo> destInfos = null;
-
+ private Map<String, ChannelMediaInfo> destInfos = null;
+
public ChannelMediaRelayConfiguration() {
- destInfos = new HashMap<String, ChannelMediaInfo>();
+ destInfos = new HashMap<String, ChannelMediaInfo>();
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<String, ChannelMediaInfo> getDestChannelMediaInfos() {
+ public Map<String, ChannelMediaInfo> getDestChannelMediaInfos() {
return destInfos;
}
-}
-
+}
export class ChannelMediaRelayConfiguration {
public srcInfo:ChannelMediaInfo = new ChannelMediaInfo(null,null,0);
public destInfos:Map<string, ChannelMediaInfo> = new Map<string, ChannelMediaInfo>();
@@ -43,25 +40,21 @@
public setSrcChannelInfo(srcInfo: ChannelMediaInfo) {
this.srcInfo = srcInfo;
}
- __attribute__((visibility("default"))) @interface AgoraChannelMediaRelayConfiguration: NSObject
-
+ __attribute__((visibility("default"))) @interface AgoraChannelMediaRelayConfiguration: NSObject
@property (strong, nonatomic, readonly) NSDictionary<NSString *, AgoraChannelMediaRelayInfo *> *_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
struct ChannelMediaRelayConfiguration {
- ChannelMediaInfo *srcInfo;
- ChannelMediaInfo *destInfos;
- int destCount;
-
- ChannelMediaRelayConfiguration()
- : srcInfo(nullptr)
- , destInfos(nullptr)
- , destCount(0)
- {}
- };
+
+ ChannelMediaInfo* srcInfo;
+
+ ChannelMediaInfo* destInfos;
+
+ int destCount;
+ ChannelMediaRelayConfiguration() : srcInfo(OPTIONAL_NULLPTR), destInfos(OPTIONAL_NULLPTR), destCount(0) {}
+};
USTRUCT(BlueprintType)
struct FChannelMediaRelayConfiguration
{
@@ -153,8 +146,9 @@ public:
setSrcChannelInfo
设置源频道信息。详见 。
-
- setDestChannelInfo
+
+ setDestChannelInfo
+ setDestinationInfo
设置目标频道信息。详见 。
@@ -205,7 +199,7 @@ public:
- 如已启用 App Certificate,则务必填入使用 channelName 和 uid 生成的 token。