rtmp、rtc推拉流支持加密

This commit is contained in:
caleb
2026-04-07 16:35:04 +08:00
parent bc56b7851d
commit 88800334ec
19 changed files with 370 additions and 147 deletions

View File

@@ -38,6 +38,10 @@ NS_ASSUME_NONNULL_BEGIN
@property (nonatomic, assign)SellyPlayerScalingMode scaleMode;
//token
@property (nonatomic, strong)NSString *token;
/// XOR 解密密钥 (十六进制字符串, 如 @"ABCDEF12")
/// 必须为偶数长度且仅包含 0-9, a-f, A-F传入非法值将抛出 NSInvalidArgumentException 导致 App 崩溃。
/// 传 nil 或空字符串表示不解密。
@property (nonatomic, copy, nullable)NSString *xorKey;
@end

View File

@@ -117,6 +117,10 @@ NS_ASSUME_NONNULL_BEGIN
@property (nonatomic, assign)SellyLiveVideoConfiguration *videoConfig;
//token
@property (nonatomic, strong)NSString *token;
/// XOR 加密密钥 (十六进制字符串, 如 @"ABCDEF12")
/// 必须为偶数长度且仅包含 0-9, a-f, A-F传入非法值将抛出 NSInvalidArgumentException 导致 App 崩溃。
/// 传 nil 或空字符串表示不加密。
@property (nonatomic, copy, nullable)NSString *xorKey;
/// 是否启用 Center Stage人物居中默认 NO
/// 支持运行时动态切换,不支持的设备设置无效