ZXVideoPlayerControlView.h
2.42 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
//
// ZXVideoPlayerControlView.h
// ZXVideoPlayer
//
// Created by Shawn on 16/4/21.
// Copyright © 2016年 Shawn. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "ZXVideoPlayerTimeIndicatorView.h"
#import "ZXVideoPlayerBrightnessView.h"
#import "ZXVideoPlayerVolumeView.h"
#import "ZXVideoPlayerBatteryView.h"
#define kZXPlayerControlViewHideNotification @"ZXPlayerControlViewHideNotification"
@protocol ZXVideoPlayerControlViewDelegage <NSObject>
@optional
- (void)videoPlayerControlViewDidTapped;
@end
@interface ZXVideoPlayerControlView : UIView
@property (nonatomic, assign, readwrite) id<ZXVideoPlayerControlViewDelegage> delegate;
@property (nonatomic, strong, readonly) UIView *topBar;
@property (nonatomic, strong, readonly) UIView *bottomBar;
@property (nonatomic, strong, readonly) UIButton *playButton;
@property (nonatomic, strong, readonly) UIButton *pauseButton;
@property (nonatomic, strong, readonly) UIButton *fullScreenButton;
@property (nonatomic, strong, readonly) UIButton *shrinkScreenButton;
//@property (nonatomic, strong, readonly) UISlider *progressSlider;
@property (nonatomic, strong, readonly) UISlider *timeSlider;
@property (nonatomic, strong, readonly) UILabel *timeLabel;
@property (nonatomic, strong, readonly) UIActivityIndicatorView *indicatorView;
// 重试按钮
@property (nonatomic, strong, readonly) UIButton *retryButton;
@property (nonatomic, assign, readonly) BOOL isBarShowing;
/// 返回按钮
@property (nonatomic, strong, readwrite) UIButton *backButton;
/// 屏幕锁定按钮
@property (nonatomic, strong, readwrite) UIButton *lockButton;
/// 缓冲进度条
@property (nonatomic, strong, readwrite) UIProgressView *bufferProgressView;
/// 快进、快退指示器
@property (nonatomic, strong, readwrite) ZXVideoPlayerTimeIndicatorView *timeIndicatorView;
/// 亮度指示器
@property (nonatomic, strong, readwrite) ZXVideoPlayerBrightnessView *brightnessIndicatorView;
/// 音量指示器
@property (nonatomic, strong, readwrite) ZXVideoPlayerVolumeView *volumeIndicatorView;
/// 电池条
@property (nonatomic, strong, readwrite) ZXVideoPlayerBatteryView *batteryView;
/// 标题
@property (nonatomic, strong, readwrite) UILabel *titleLabel;
/// 直播状态
@property (nonatomic, assign) int liveStatus;
///分享
@property (nonatomic, strong, readwrite) UIButton *shareButton;
- (void)animateHide;
- (void)animateShow;
- (void)autoFadeOutControlBar;
- (void)cancelAutoFadeOutControlBar;
@end