美文网首页
Zoom视频会议第三方阅读记录

Zoom视频会议第三方阅读记录

作者: 跬步千里_LenSky | 来源:发表于2018-04-07 11:21 被阅读96次
    MobileRTC.framework   
    MobileRTCResources.bundle
    libsqlite3.tbd
    libstdc++.6.0.9.tbd
    libz.1.2.5.tbd
    VideoToolbox.framework
    
    ```在网页端设置appk 以及 secret
    
    这里需要注意因为我们需要在关闭bitcode  不知道怎么操作的请自行查询
    下面的是英文版的具体配置 因为谷歌翻译 让一些重要信息丢失了所以直接用英文的想必每一个开发者都大致理解什么意思
    Development Environment
    Configuration
    iOS version:iOS 7.0 or later
     Support ARC: Yes
    Frameworks
    //这里是导入 zoom framework库的时候需要的操作
    MobileRTC provides a MobileRTC.framework and a MobileRTCResources.bundle in zoom-ios-mobilertc/lib directory
    MobileRTC.framework should be imported into “Link Binary With Libraries”
    MobileRTC Resources.bundle should be copied into “Copy Bundle Resources”
    Deployment
    
    Set “Targeted Device Family” to “iPhone/iPad”//这里设置我们的是否是iPad还是iPhone
    Set “iOS Deployment Target” to “iOS 7.0” or later//设置支持版本
    Add “-ObjC” in “Other Linker Flags” of Build Settings//在 Build Settings 搜索 Other Linker Flags  并添加 -ObjC
    Set “C++ Language Dialect” to “Compile Default”
    Set “C++ Standard Library” to “Compile Default”
    //导入一下frame work库
    Import “libsqlite3.tbd”, “libstdc++.6.0.9.tbd”, “libz.1.2.5.tbd”, 
    “VideoToolbox.framework” and “CoreBluetooth.framework” into “Link Binary With Libraries”
    //在appdelegate的入口类的方法中添加方法
    1.设置MobileRTC域
    [[MobileRTC sharedRTC] setMobileRTCDomain:@“zoom.us”];
    2.设置MobileRTC Resource Bundle路径
    //注意:这一步是可选的,如果MobileRTCResources.bundle包含在其他bundle / framework中,则使用此方法设置MobileRTCResources.bundle的路径,或者忽略此步骤
    NSString * bundlePath = [[NSBundle mainBundle] bundlePath];
    [[MobileRTC sharedRTC] setMobileRTCResPath:bundlePath];
    3.设置MobileRTC Root Navigation Controller
    //注意:这一步是可选的,如果应用程序的rootViewController不是UINavigationController,则忽略此步骤。 一般都不是导航吧 应该是tabbarViewController 或者其他高级类型的可能需要把
    [[MobileRTC sharedRTC] setMobileRTCRootController:navController];
    4. MobileRTC验证 连接 zoom 
    MobileRTCAuthService * authService = [[MobileRTC sharedRTC] getAuthService];
    if(authService){
    authService.delegate = self;
    authService.clientKey = @“youappkey”;
    authService.clientSecret = @“youSecret”;
    [authService sdkAuth];
    }
    //也就是说内部实现了静默登录,如果我们想要注销此登录 可以调用下面的方法
    登录和注销登录两个方法来实现
    一旦您的应用程序使用工作电子邮件登录,MobileRTC将在每次启动应用程序时自动登录,并且您的应用程序可以通过调用接口“logoutRTC”来停止它。
    
    5.使用工作电子邮件帐户登录 也可以说是账号密码登录  
    MobileRTCAuthService * authService = [[MobileRTC sharedRTC] getAuthService];
    if(authService){
    BOOL ret = [authService loginWithEmail:@“xx@xx.xx”password:@“yyy”];
    }
    6.注销 当前登录的用户  
    MobileRTC AuthService * authService = [[MobileRTC sharedRTC] getAuthService];
    if(authService){
    [authService注销RTC];
    }
    
     MobileRTCAuthDelegate的监听器  使用代理方式来返回验证情况 
    要从MobileRTC检查身份验证,可以在AppDelegate中添加侦听器。
    
    #pragma mark  -  Auth Delegate 
     // Sink auth事件   
    - (void)onMobileRTCAuthReturn :( MobileRTCAuthError)returnValue { 
    NSLog(@“onMobileRTCAuthReturn%d”,returnValue);
     }
    // Sink登录事件 
    - (void)onMobileRTCLoginReturn:(NSInteger)returnValue { 
    NSLog(@“onMobileRTCLoginReturn result =%zd”,returnValue); 
    //使用工作电子邮件帐户登录后    获取会议服务并设置代理
    MobileRTCPremeetingService * service = [[MobileRTC sharedRTC] getPreMeetingService];
     if(service){
    service.delegate = self;
    }
    }
    // Sink注销事件
    - (void)onMobileRTCLogoutReturn:(NSInteger)returnValue
    {
    NSLog(@“onMobileRTCLogoutReturn result =%zd”,returnValue);
    }
    
    

    相关文章

      网友评论

          本文标题:Zoom视频会议第三方阅读记录

          本文链接:https://www.haomeiwen.com/subject/opzehftx.html