initial commit
This commit is contained in:
36
Example/SellyCloudSDK/VideoCall/TokenGenerator.h
Normal file
36
Example/SellyCloudSDK/VideoCall/TokenGenerator.h
Normal 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
|
||||
Reference in New Issue
Block a user