You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

70 lines
1.9 KiB

//
// TFBasicVoiceHeaderView.h
// WXReader
//
// Created by 谢腾飞 on 2020/12/1.
// Copyright © 2020 xtfei_2011@126.com. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "WXYZ_PlayPageModel.h"
#import "CKAudioProgressView.h"
NS_ASSUME_NONNULL_BEGIN
typedef NS_ENUM(NSUInteger, TFBasicVoicePlayerState) {
TFBasicVoicePlayerStateLoading,
TFBasicVoicePlayerStatePlaying,
TFBasicVoicePlayerStatePause,
TFBasicVoicePlayerStateStoped,
TFBasicVoicePlayerStateFail
};
@interface TFBasicVoiceHeaderView : UIView
@property (nonatomic ,assign) TFProductionType productionType;
@property (nonatomic ,strong) WXYZ_RelationModel *relationModel;
@property (nonatomic ,strong) NSArray <TFProductionChapterModel *> *chapter_list;
@property (nonatomic ,strong) TFProductionChapterModel *productionChapterModel;
@property (nonatomic ,strong) TFProductionChapterModel *temp_chapterModel; // 临时章节信息记录
@property (nonatomic ,strong) TFButton *timingButton; // 定时按钮
@property (nonatomic ,strong) TFButton *speedButton; // 语速按钮
@property (nonatomic ,strong) TFButton *voiceButton; // 声音按钮
@property (nonatomic ,assign) TFBasicVoicePlayerState playerState;
@property (nonatomic ,strong) CKAudioProgressView *timelineProgress; // 播放进度
@property (nonatomic ,copy) void (^checkOriginalBlock)(TFProductionChapterModel *chapterModel);
@property (nonatomic ,copy) void (^checkRelationProductionBlock)(WXYZ_RelationModel *relationModel);
@property (nonatomic ,copy) void (^resetPlayerBlock)(BOOL immediateReset);
- (instancetype)initWithProductionType:(TFProductionType)productionType;
- (void)createSubviews;
// 上一首
- (void)skipToLastChapter;
// 下一首
- (void)skipToNextChapter;
// 显示充值页
- (void)showPayView;
// 设置关联作品标题
- (void)setRelationViewTitle:(NSString *)title;
@end
NS_ASSUME_NONNULL_END