Files
SellyCloudSDK_demo/Example/SellyCloudSDK/VideoCall/TokenGenerator.h
2026-03-01 15:59:27 +08:00

37 lines
972 B
Objective-C
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
//
// 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