| | |
| | | FOUNDATION_EXPORT LCDDrawFeatureString const kLCDDrawWebcast; //支持直播+内容 |
| | | FOUNDATION_EXPORT LCDDrawFeatureString const kLCDDrawWebcastonly; //只支持直播 |
| | | |
| | | typedef NS_OPTIONS(NSUInteger, LCDDrawVideoVCTabOptions) { |
| | | LCDDrawVideoVCTabOptions_recommand = 1 << 0, |
| | | LCDDrawVideoVCTabOptions_following = 1 << 1 |
| | | }; |
| | | |
| | | typedef NS_ENUM(NSUInteger, LCDDrawVideoWatcherRole) { |
| | | LCDDrawVideoWatcherRole_Default, //正常Draw流 |
| | | LCDDrawVideoWatcherRole_Host, //正常Draw流 控制端模式 |
| | | LCDDrawVideoWatcherRole_User, //正常Draw流 被控制端模式 |
| | | }; |
| | | |
| | | @interface LCDDrawVideoNavigationBarInset : NSObject |
| | | /// 默认为is_iphoneX?44:20,navigationBar距顶部距离 |
| | | @property (nonatomic) CGFloat top; |
| | |
| | | 跟LCDUserInteractionCallBackProtocol.lcdClickShareShareEvent 分享回调配合使用 |
| | | */ |
| | | @property (nonatomic, assign) long long initShareAwakeDataGroupID; |
| | | |
| | | @property (nonatomic, assign) long long initPushAwakeDataGroupID; |
| | | /// 以下方法仅限以添加view的形式使用LCDDrawVideoViewController的开发者使用,直接使用Controller的开发者可忽略 |
| | | /// 例如:LCDDrawVideoViewController *vc = [[LCDDrawVideoViewController alloc] initWithConfigBuilder:^(LCDDrawVideoVCConfig * _Nonnull config) { |
| | | /// 使用示例: |
| | |
| | | @property (nonatomic, copy) void(^configScrollViewsBlock)(LCDDrawVideoViewController *vc, UIScrollView *dataView, NSUInteger atIndex); |
| | | /*! 个性化推荐关闭以后,推荐频道名称,默认为“首页” */ |
| | | @property (nonatomic, copy) NSString *recommandTabName; |
| | | /*! 自定义刷新行为和手势 */ |
| | | @property (nonatomic, assign) BOOL customRefresh; |
| | | /*! 需要展示的tab,默认全部展示*/ |
| | | @property (nonatomic, assign) LCDDrawVideoVCTabOptions drawVCTabOptions; |
| | | |
| | | /*! 是否屏蔽关注功能,当drawVCTabOptions为LCDDrawVideoVCTabOptions_recommand时有效 |
| | | 默认为NO,若disableFollowingFunc为YES,则不展示关注相关功能(“我的”个人主页、关注按钮、关注指引等) |
| | | */ |
| | | @property (nonatomic, assign) BOOL shouldDisableFollowingFunc; |
| | | |
| | | /// 是否隐藏频道tab,仅有一个tab时这个开关才生效 |
| | | @property (nonatomic, assign) BOOL shouldHideTabBarView; |
| | | |
| | | /*! 一起看视频当前页面的模式 */ |
| | | @property (nonatomic, assign) LCDDrawVideoWatcherRole currentMode; |
| | | @property (nonatomic, assign) long long watchVideoTogetherGroupID; |
| | | |
| | | /** --------------------for 内容定制-------------------- */ |
| | | /*! @abstract optional,标记接入场景,例如首页、顶tab等。必须与后台申请的scene保持一致,否则会出问题。 */ |
| | |
| | | /*! @abstract 视图已经消失 */ |
| | | - (void)drawVideoViewControllerDidDisappear; |
| | | |
| | | /// 一起看视频相关接口 |
| | | /*! @abstract 当前元素属于数组中第几个 */ |
| | | - (NSInteger)currentIndexVideoList; |
| | | /*! @abstract 滑动到指定位置 */ |
| | | - (BOOL)scrollToIndex:(NSInteger)index; |
| | | /*! @abstract 播放 */ |
| | | - (void)pauseCurrentVideo; |
| | | /*! @abstract 播放 */ |
| | | - (void)playCurrentVideo; |
| | | /*! @abstract 控制播放进度 单位 毫秒*/ |
| | | - (void)seekVideoToMSeconds:(float)mSeconds; |
| | | /*! @abstract 被控端用来同步数据*/ |
| | | - (void)syncDataToPlay:(NSString *)syncData refreshType:(int)type withCompletion:(void (^)(bool isSuccess, NSString *msg))completion; |
| | | |
| | | |
| | | @end |
| | | |
| | | NS_ASSUME_NONNULL_END |