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

@@ -0,0 +1,39 @@
//
// AVApiService.h
// SellyCloudSDK_Example
//
#import <Foundation/Foundation.h>
@class AVLiveStreamModel;
NS_ASSUME_NONNULL_BEGIN
typedef void(^AVApiSuccess)(id _Nullable responseObject);
typedef void(^AVApiFailure)(NSError *error);
@interface AVApiService : NSObject
+ (instancetype)shared;
/// GET /live/sdk/alive-list
- (void)fetchLiveStreams:(void(^)(NSArray<AVLiveStreamModel *> *streams))success
failure:(nullable AVApiFailure)failure;
/// POST /live/sdk/demo/stream-xor
- (void)reportXorKeyWithVhost:(NSString *)vhost
app:(NSString *)app
stream:(NSString *)stream
xorKey:(nullable NSString *)xorKey
success:(nullable AVApiSuccess)success
failure:(nullable AVApiFailure)failure;
/// POST /live/sdk/demo/login
- (void)loginWithUsername:(NSString *)username
password:(NSString *)password
success:(void(^)(id responseObject))success
failure:(void(^)(NSError *error, NSString * _Nullable serverMessage))failure;
@end
NS_ASSUME_NONNULL_END