语音弹幕设计
2019-10-09 09:50:51 11 举报
语音弹幕设计
作者其他创作
大纲/内容
EPBarrageModel
NSString *barrageID;NSString *barrageUrl;NSString *headUrl;NSTimeInterval startTimestamp;NSTimeInterval duartion;NSTimeInterval endTimestamp;BOOL isMute;BOOL isPicked;NSInteger commentId;
EPAudioBarrageManager
EPBarragePositionAdapter *positionAdapterid<EPAudioBarrageManagerDeleagte> delegate
- (void)pullAudioBarrageRequest:(NSString *)videoID ;- (void)setupBarrageBgView:(UIView *)superView ;- (void)mainPlayerCurrentTime:(NSTimeInterval)currentTime totalTime:(NSTimeInterval)totalTime;
EPBarrageBackgroundView
- (void)addAnimationView:(CGFloat)pathY barrage:(EPBarrageModel *)barrageModel currentTime:(NSTimeInterval)currentTime;- (void)removeAnimationView:(EPBarrageAnimationView *)aView ;- (void)removeAllAnimationViews;
barrageDownload
- downloadBarrage- checkOverflow (防止本地缓存过多)
EPBarragePositionAdapter
NSMutableArray<EPBarrageModel *> *barrages (数据源)
- (EPBarrageModel *)calculatePosition:(EPBarrageModel *)barrage;(主要负责计算)
0 条评论
下一页