35 lines
783 B
Objective-C
35 lines
783 B
Objective-C
//
|
|
// SCPlayerConfigView.h
|
|
// SellyCloudSDK_Example
|
|
//
|
|
// Created by Caleb on 16/12/25.
|
|
// Copyright © 2025 Caleb. All rights reserved.
|
|
//
|
|
|
|
#import <UIKit/UIKit.h>
|
|
#import <SellyCloudSDK/SellyCloudManager.h>
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
@interface SCPlayerConfig : NSObject
|
|
@property (nonatomic, assign) SellyLiveMode protocol;
|
|
@property (nonatomic, strong) NSString *streamId;
|
|
@property (nonatomic, copy, nullable) NSString *xorKey;
|
|
|
|
/// 保存配置到 UserDefaults
|
|
- (void)saveToUserDefaults;
|
|
|
|
/// 从 UserDefaults 加载配置
|
|
+ (instancetype)loadFromUserDefaults;
|
|
|
|
@end
|
|
|
|
@interface SCPlayerConfigView : UIView
|
|
|
|
- (void)showInViewController:(UIViewController *)viewController
|
|
callback:(void(^)(SCPlayerConfig *config))callback;
|
|
|
|
@end
|
|
|
|
NS_ASSUME_NONNULL_END
|