initial commit

This commit is contained in:
Caleb
2026-03-01 15:59:27 +08:00
commit a9e97d56cb
1426 changed files with 172367 additions and 0 deletions

View File

@@ -0,0 +1,36 @@
//
// TokenGenerator.h
// SellyCloudSDK_Example
//
// Created by Caleb on 20/11/25.
// Copyright © 2025 Caleb. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <CommonCrypto/CommonCrypto.h>
NS_ASSUME_NONNULL_BEGIN
@interface TokenGenerator : NSObject
+ (NSString *)generateRTCCallTokenWithUserId:(NSString *)userId
callId:(NSString *)callId;
/**
生成流媒体签名
@param vhost 虚拟主机
@param appId 应用ID
@param channelId 频道ID
@param type 类型push 或 pull
@param key 对应的 push_key 或 pull_key
@return 签名字符串
*/
+ (NSString *)generateStreamSignatureWithVhost:(NSString *)vhost
appId:(NSString *)appId
channelId:(NSString *)channelId
type:(NSString *)type
key:(NSString *)key;
@end
NS_ASSUME_NONNULL_END