// // TCVideoPreview.h // TCLVBIMDemo // // Created by xiang zhang on 2017/4/18. // Copyright © 2017年 tencent. All rights reserved. // #import #import @protocol TXVideoPreviewListener; @protocol TCVideoPreviewDelegate - (void)onVideoPlay; - (void)onVideoPause; - (void)onVideoResume; - (void)onVideoPlayProgress:(CGFloat)time; - (void)onVideoPlayFinished; @optional - (void)onVideoEnterBackground; - (void)onVideoWillEnterForeground; @end @interface TCVideoPreview : UIView @property(nonatomic,weak) id 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