Files
ifish/Ifish/controllers/IfishTabControllers/探索/IfishLive/IfishP2PPlayView/IfishP2PVideoPlayView.h
T
2017-08-15 16:59:01 +08:00

153 lines
4.8 KiB
Objective-C

//
// IfishP2PVideoPlayView.h
// Ifish
//
// Created by imac on 16/11/11.
// Copyright © 2016年 lianxiang. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "IfishCameraModel.h"
#import "ProgressImageView.h"
#import "OpenGLView.h"
#import "TouchButton.h"
#import "CustomBorderButton.h"
#import "CustomView.h"
#define FocalLength_Elongation_btnTag 300
#define FocalLength_Shorten_btnTag 301
#define FocalLength_Change_sliderTag 302
//竖屏
#define STOPBTN_TAG 1603227
#define SOUND_BUTTON_H_TAG 1603221
#define SWITCH_SCREEN_BUTTON_H_TAG 1603222
#define DEFENCE_BUTTON_H_TAG 1603223
#define TALK_BUTTON_H_TAG 1603224
#define SCREENSHOT_BUTTON_H_TAG 1603225
#define PROMPT_BUTTON_TAG 1603226
#define SCREENSHOT_BUTTON_FLIE_TAG 1603228
#define VT_STOPBTN_TAG 1603229
#define DOOR_BELLALERT 1001001
#define CAMERA_DEVICE_JIEBANG_ALERT 1001002
#define XUANDUO_GUANSHUIBENG_ALERT 1001003
#define WEIJIHUO_ALERT 1001004
#define ALERT_TAG_UPDATE 1
#import <AVFoundation/AVFoundation.h>
#import "P2PClient.h"
//暂未完成 勿yong
@protocol IfishP2PVideoPlayViewDelegate <NSObject>
-(void)btnClickToBackAction;
@end
@interface IfishP2PVideoPlayView : UIView<AVCaptureVideoDataOutputSampleBufferDelegate,UIGestureRecognizerDelegate,
TouchButtonDelegate,
OpenGLViewDelegate,
UIScrollViewDelegate,
UIAlertViewDelegate,
P2PClientDelegate>
{
CGFloat _horizontalScreenH;
CGFloat _monitorInterfaceW;//rtsp监控界面弹出修改
CGFloat _monitorInterfaceH;//rtsp监控界面弹出修改
UIButton* _btnDefence;
BOOL _isPlaying;
BOOL _isOkFirstRenderVideoFrame;//YES表示第一次成功渲染图像
BOOL _isOkRenderVideoFrame;//YES表示图像渲染出来了
BOOL _isCanAutoOrientation;//限制屏幕什么时候可以旋转
BOOL _isInItDevice; //是否连接设备
BOOL _isStop;//是否暂停 用于区分是 暂停按钮 还是 连接失败按钮
}
+ (instancetype)videoPlayView;
@property (weak, nonatomic) IBOutlet UIView *canvasView;
@property (nonatomic,strong) IfishCameraModel *contact;
@property (weak, nonatomic) IBOutlet ProgressImageView *yProgressView;
@property (weak, nonatomic) IBOutlet UIButton *promptButton;
@property (weak, nonatomic) IBOutlet OpenGLView *remoteView;
@property (weak, nonatomic) IBOutlet UIView *midToolHView;
@property(nonatomic,assign) id delegate;
@property (nonatomic, weak) UIViewController *contrainerViewController;
@property (nonatomic) BOOL isReject;
@property (nonatomic) BOOL isShowControllerBar;
@property (nonatomic) BOOL isShowVToolBar;
@property (nonatomic) BOOL isVideoModeHD;
@property (weak, nonatomic) IBOutlet UIButton *switchScreenButtonH;
@property (weak, nonatomic) IBOutlet UIButton *stopBtnH;
@property (nonatomic) BOOL isFullScreen4B3;
@property (nonatomic,strong) UIScrollView *scrollView;//监控界面缩放
@property (nonatomic) BOOL isScale;//监控界面缩放
@property (strong, nonatomic) UIView *bottomView;//重新调整监控画面
@property (strong, nonatomic) UIView *pressView;
@property (nonatomic) BOOL isTalking;
@property (strong, nonatomic) UIView *controllerRight;
@property (strong, nonatomic) UIView *controllerRightBg;//重新调整监控画面
@property (strong, nonatomic) UIView *bottomBarView;//重新调整监控画面
@property (strong, nonatomic) UIView *controllBar;
@property (nonatomic) BOOL isAlreadyShowResolution;//重新调整监控画面
@property (nonatomic) BOOL isDefenceOn;//重新调整监控画面
//GPIO 口控制参数记录
@property(strong, nonatomic) CustomBorderButton *customBorderButton;
@property(strong, nonatomic) CustomView *leftView;
@property(nonatomic) BOOL isShowLeftView;
@property(nonatomic) int lastGroup;
@property(nonatomic) int lastPin;
@property(nonatomic) int lastValue;
@property(nonatomic) int *lastTime;
@property(nonatomic, strong) UIButton *clickGPIO0_0Button;
@property(nonatomic, strong) UIButton *clickGPIO0_1Button;
@property(nonatomic, strong) UIButton *clickGPIO0_2Button;
@property(nonatomic, strong) UIButton *clickGPIO0_3Button;
@property(nonatomic, strong) UIButton *clickGPIO0_4Button;
@property(nonatomic, strong) UIButton *clickGPIO2_6Button;
@property(nonatomic, strong) UIButton *lightButton;
@property (nonatomic) BOOL isLightSwitchOn;
@property (strong, nonatomic) UIActivityIndicatorView *progressView;
@property (nonatomic) BOOL isSupportLightSwitch;
//YES表示当前处于监控中,且接收到推送,点击观看监控
@property (assign,nonatomic) BOOL isIntoMonitorFromMonitor;
@property (strong, nonatomic) UIView *focalLengthView;
@property (nonatomic) BOOL isSupportFocalLength;
@property (strong, nonatomic) UIPinchGestureRecognizer *pinchGestureRecognizer;
//判断当前监控处于横屏还是竖屏界面
@property (assign,nonatomic) BOOL isFullScreen;
@property (strong, nonatomic) UIView *fullScreenBgView;
@end