initial commit
This commit is contained in:
33
Example/SellyCloudSDK/Play/SCPlayerConfigView.h
Normal file
33
Example/SellyCloudSDK/Play/SCPlayerConfigView.h
Normal file
@@ -0,0 +1,33 @@
|
||||
//
|
||||
// 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
|
||||
Reference in New Issue
Block a user