GraphicLiveViewController.h 1.61 KB
//
//  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