Files
my_yuyin/Pods/YBImageBrowser/Video/YBIBVideoView.h
2025-09-22 18:48:29 +08:00

77 lines
1.9 KiB
Objective-C

//
// YBIBVideoView.h
// YBImageBrowserDemo
//
// Created by 波儿菜 on 2019/7/11.
// Copyright © 2019 杨波. All rights reserved.
//
#import "YBIBVideoActionBar.h"
#import "YBIBVideoTopBar.h"
NS_ASSUME_NONNULL_BEGIN
@class YBIBVideoView;
@protocol YBIBVideoViewDelegate <NSObject>
@required
- (BOOL)yb_isFreezingForVideoView:(YBIBVideoView *)view;
- (void)yb_preparePlayForVideoView:(YBIBVideoView *)view;
- (void)yb_startPlayForVideoView:(YBIBVideoView *)view;
- (void)yb_finishPlayForVideoView:(YBIBVideoView *)view;
- (void)yb_didPlayToEndTimeForVideoView:(YBIBVideoView *)view;
- (void)yb_playFailedForVideoView:(YBIBVideoView *)view;
- (void)yb_respondsToTapGestureForVideoView:(YBIBVideoView *)view;
- (void)yb_cancelledForVideoView:(YBIBVideoView *)view;
- (CGSize)yb_containerSizeForVideoView:(YBIBVideoView *)view;
- (void)yb_autoPlayCountChanged:(NSUInteger)count;
@end
@interface YBIBVideoView : UIView
@property (nonatomic, strong) UIImageView *thumbImageView;
@property (nonatomic, weak) id<YBIBVideoViewDelegate> delegate;
- (void)updateLayoutWithExpectOrientation:(UIDeviceOrientation)orientation containerSize:(CGSize)containerSize;
@property (nonatomic, strong, nullable) AVAsset *asset;
@property (nonatomic, assign, readonly, getter=isPlaying) BOOL playing;
@property (nonatomic, assign, readonly, getter=isPlayFailed) BOOL playFailed;
@property (nonatomic, assign, readonly, getter=isPreparingPlay) BOOL preparingPlay;
@property (nonatomic, strong, readonly) UITapGestureRecognizer *tapGesture;
- (void)reset;
- (void)hideToolBar:(BOOL)hide;
- (void)hidePlayButton;
- (void)preparPlay;
@property (nonatomic, assign) BOOL needAutoPlay;
@property (nonatomic, assign) NSUInteger autoPlayCount;
@property (nonatomic, strong, readonly) YBIBVideoTopBar *topBar;
@property (nonatomic, strong, readonly) YBIBVideoActionBar *actionBar;
@end
NS_ASSUME_NONNULL_END