| 123456789101112131415161718192021222324252627282930313233343536373839404142 |
- //
- // TCVideoPreview.h
- // TCLVBIMDemo
- //
- // Created by xiang zhang on 2017/4/18.
- // Copyright © 2017年 tencent. All rights reserved.
- //
- #import <UIKit/UIKit.h>
- #import <TXLiteAVSDK_Professional/TXVideoEditerListener.h>
- @protocol TXVideoPreviewListener;
- @protocol TCVideoPreviewDelegate <NSObject>
- - (void)onVideoPlay;
- - (void)onVideoPause;
- - (void)onVideoResume;
- - (void)onVideoPlayProgress:(CGFloat)time;
- - (void)onVideoPlayFinished;
- @optional
- - (void)onVideoEnterBackground;
- - (void)onVideoWillEnterForeground;
- @end
- @interface TCVideoPreview : UIView<TXVideoPreviewListener>
- @property(nonatomic,weak) id<TCVideoPreviewDelegate> delegate;
- @property(nonatomic,strong) UIView *renderView;
- @property(nonatomic, readonly, assign) BOOL isPlaying;
- - (instancetype)initWithFrame:(CGRect)frame coverImage:(UIImage *)image;
- - (void)setPlayBtnHidden:(BOOL)isHidden;
- - (void)setPlayBtn:(BOOL)videoIsPlay;
- - (void)playVideo;
- - (void)removeNotification;
- @end
|