萤石云 iOSSDK,移植跨平台相关工程
JLChen
2021-04-19 b7fa25faef4decf509a998ae861f059896ea6093
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
//
//  ViewController.m
//  EZOpenSDKDemo
//
//  Created by DeJohn Dong on 15/10/27.
//  Copyright © 2015年 Ezviz. All rights reserved.
//
 
#import "ViewController.h"
//#import "EZSupportViewController.h"
//#import "DDKit.h"
#import "EZSDK.h"
 
@interface ViewController ()
@property (weak, nonatomic) IBOutlet UIButton *ddnsDemoBtn;
 
@end
 
@implementation ViewController
 
- (void)viewDidLoad {
    [super viewDidLoad];
    [EZSDK libInit];
//
//#ifdef EZVIZ_GLOBAL_DEMO
//    self.ddnsDemoBtn.hidden = NO;
//#else
//    self.ddnsDemoBtn.hidden = YES;
//#endif
    // Do any additional setup after loading the view, typically from a nib.
}
 
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
 
}
 
#pragma mark - Action Methods
 
- (IBAction)go2CameraList:(id)sender
{
//    //获取EZMain的stroyboard文件
//    UIStoryboard *ezMainStoryboard = [UIStoryboard storyboardWithName:@"EZMain" bundle:nil];
//    //获取EZMain.storyboard的实例ViewController--获取摄像头列表
//    UIViewController *instanceVC = [ezMainStoryboard instantiateViewControllerWithIdentifier:@"EZCameraList"];
//    //push摄像头列表的viewController
//    [self.navigationController pushViewController:instanceVC animated:YES];
    
    /**
     *  下面代码功能与以上的注释方法相同
     */
//    [self performSegueWithIdentifier:@"go2CameraList" sender:nil];
    
    
    [EZSDK go2EZvizMonitor];
}
 
- (IBAction)logout:(id)sender
{
   
//    [EZOPENSDK logout:^(NSError *error) {
//    }];
}
 
- (IBAction)goAPI:(id)sender
{
//    [EZOPENSDK gotoEzvizAppPage:EZPageAlarmList appType:EZEzvizInternational];
//    [self performSegueWithIdentifier:@"go2DemoAPI" sender:nil];
}
 
- (IBAction)addQQGroup:(id)sender
{
//    NSString *urlStr = [NSString stringWithFormat:@"mqqapi://card/show_pslcard?src_type=internal&version=1&uin=%@&key=%@&card_type=group&source=external", @"511147309",@"626a9c0f72a1d877a6dc7f286db0098375436993cd22c323f5934566acc3ca8c"];
//    NSURL *url = [NSURL URLWithString:urlStr];
//    if([[UIApplication sharedApplication] canOpenURL:url]){
//        [[UIApplication sharedApplication] openURL:url];
//    }
}
 
- (IBAction) ezvizLogin:(id)sender
{
//    [EZOPENSDK ezvizLoginWithAppType:EZEzvizInternational];
}
 
- (IBAction)supportBtnClick:(id)sender
{
    [self enterSupport];
}
 
- (void)enterSupport
{
//    EZSupportViewController *vc = [[EZSupportViewController alloc] init];
//    UINavigationController *nav = [[UINavigationController alloc] initWithRootViewController:vc];
//    [self presentViewController:nav animated:YES completion:nil];
}
 
@end