GraphicLiveViewController.h
1.61 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
//
// GraphicLiveViewController.h
// SCIOLiveCN
//
// Created by huayu on 16/5/13.
// Copyright © 2016年 huayu. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "CNLiveBaseViewController.h"
#import "ZXVideoPlayerController.h"
#import "CNLivePlayerController.h"
// 播放类型
typedef NS_ENUM(NSInteger, PlayerType) {
PlayerTypeLiving = 0, // 直播
PlayerTypeVOD, // 点播
PlayerTypeNormal // 普通URL模式
};
typedef void(^DataChanged)(void);
@interface GraphicLiveViewController : CNLiveBaseViewController<WKNavigationDelegate>{
UIScrollView *backgroundView;
UIImageView *imageView;
UIButton *playBtn;
NSURL *movieUrl;
NSString *url;
WKWebView *relatedWebView;
WKWebView *_webView;
NSArray *_newsArray;
CGFloat videoHeight;
CGFloat descriptionHeight;
CGFloat graphicLiveHeight;
UIImageView *lineImage1;
UIImageView *lineImage2;
UIImageView *upDownImage;
UIButton *upDownButton;
BOOL isPlay;
BOOL isShow;
UIView *relatedInformationView;
NSDictionary *_dic;
NSDictionary *_dictionary;
NSMutableArray *heightArr;
NSArray *fontArray;
int fontIndex;
}
@property (strong, nonatomic) UILabel *errorLabe;
@property (strong, nonatomic) UITableView *tableView;
@property (nonatomic, strong) ZXVideoPlayerController *videoController;
@property (nonatomic, strong) CNLivePlayerController *liveController;
@property (nonatomic, assign) PlayerType type;
@property (nonatomic, strong) NSArray *relatedArray;
@property (nonatomic, copy) DataChanged reloadData;
- (id)initWithDictionary:(NSDictionary*)dictionary;
@end