| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- //
- // BGKSYPlayerController.h
- // FanweApp
- //
- // Created by xfg on 2017/2/10.
- // Copyright © 2017年 xfg. All rights reserved.
- //
- #import <UIKit/UIKit.h>
- @class BGKSYPlayerController;
- //@protocol FWKSYPlayerControllerDelegate <NSObject>
- //@required
- //
- //// 首帧回调
- //- (void)firstFrame:(BGKSYPlayerController*)playVC;
- //// 网络断连,且经多次重连抢救无效后退出app
- //- (void)exitPlayAndApp:(BGKSYPlayerController*)publishVC;
- //// 网络断连,重连
- //- (void)playAgain:(BGKSYPlayerController*)publishVC isHideLeaveTip:(BOOL)isHideLeaveTip;
- //
- //@end
- @interface BGKSYPlayerControllerForPk : UIViewController
- @property (nonatomic, weak) id<FWKSYPlayerControllerDelegate> delegate;
- @property (nonatomic, assign) NSInteger liveType; // 视频类型,对应枚举FW_LIVE_TYPE
- @property (nonatomic, strong) NSURL *playUrl; // 拉流地址
- @property (strong, nonatomic) KSYMoviePlayerController *moviePlayer; // 视频播放类
- @property (nonatomic, strong) UIView *videoContrainerView; // 视频容器视图
- @property (nonatomic, strong) BGReLiveProgressView *reLiveProgressView; // 回播进度条
- @property (nonatomic, assign) long speedK;
- // 初始化视频播放类
- - (void)initPlayerWithUrl:(NSURL *)playUrl createType:(NSInteger)createType;
- // 暂停播放
- - (void)pausePlay;
- // 继续播放
- - (void)resumePlay;
- // 重新播放
- - (void)reloadPlay;
- // 结束播放
- - (void)stopPlay;
- @end
|