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

34 lines
727 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;
/// 保存配置到 UserDefaults
- (void)saveToUserDefaults;
/// 从 UserDefaults 加载配置
+ (instancetype)loadFromUserDefaults;
@end
@interface SCPlayerConfigView : UIView
- (void)showInViewController:(UIViewController *)viewController
callback:(void(^)(SCPlayerConfig *config))callback;
@end
NS_ASSUME_NONNULL_END