Commit cd9b5a3b by zhangyunjie

2.7.5.0

parent ca78e675
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
[self.view endEditing:YES]; [self.view endEditing:YES];
[[OffcnLiveSDK defaultService] authWithNavigationController:self.navigationController VideoType:OffcnVideoTypeBigClassLive jumpMode:OffcnJumpModePush appName:@"zaixianketang" phone:@"18310564002" nickname:self.nameTextField.text password:self.koulingTextField.text uuid:self.uuidTextField.text hook:@"123" documentPath:@"123" extensionDic:[NSDictionary dictionaryWithObject:@"123" forKey:@"123"] playbackSeekTime:0]; [[OffcnLiveSDK defaultService] authWithNavigationController:self.navigationController VideoType:OffcnVideoTypeBigClassLive jumpMode:OffcnJumpModePush appName:@"zaixianketang" phone:@"18310564002" nickname:self.nameTextField.text password:self.koulingTextField.text uuid:self.uuidTextField.text hook:@"123" documentPath:@"123" extensionDic:[NSDictionary dictionaryWithObject:@"123" forKey:@"123"] playbackSeekTime:0 ssoAppId:@"" ssoToken:@"" bc_id:@""];
//更换某个控件颜色 //更换某个控件颜色
// NSString *colorStr = @"#ff895f"; // NSString *colorStr = @"#ff895f";
...@@ -39,7 +39,7 @@ ...@@ -39,7 +39,7 @@
#pragma mark - 回放视频事件 #pragma mark - 回放视频事件
- (IBAction)playBackAction:(UIButton *)sender { - (IBAction)playBackAction:(UIButton *)sender {
[[OffcnLiveSDK defaultService] authWithNavigationController:self.navigationController VideoType:OffcnVideoTypeBigClassPlayback jumpMode:OffcnJumpModePush appName:@"zaixianketang" phone:@"18310564002" nickname:self.nameTextField.text password:self.koulingTextField.text uuid:self.uuidTextField.text hook:@"123" documentPath:@"123" extensionDic:[NSDictionary dictionaryWithObject:@"123" forKey:@"123"] playbackSeekTime:0]; [[OffcnLiveSDK defaultService] authWithNavigationController:self.navigationController VideoType:OffcnVideoTypeBigClassPlayback jumpMode:OffcnJumpModePush appName:@"zaixianketang" phone:@"18310564002" nickname:self.nameTextField.text password:self.koulingTextField.text uuid:self.uuidTextField.text hook:@"123" documentPath:@"123" extensionDic:[NSDictionary dictionaryWithObject:@"123" forKey:@"123"] playbackSeekTime:0 ssoAppId:@"" ssoToken:@"" bc_id:@""];
} }
- (void)viewDidLoad { - (void)viewDidLoad {
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
Pod::Spec.new do |s| Pod::Spec.new do |s|
s.name = 'OffcnLiveSDKiOS' s.name = 'OffcnLiveSDKiOS'
s.version = '2.7.3.3.4' s.version = '2.7.5.0'
s.summary = 'OffcnLiveSDKiOS.' s.summary = 'OffcnLiveSDKiOS.'
s.description = <<-DESC s.description = <<-DESC
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
#import <UIKit/UIKit.h> #import <UIKit/UIKit.h>
#import "OffcnShareWindow.h" #import "OffcnShareWindow.h"
static const NSString *OffcnLiveSDKVersion = @"2.7.3.3.3"; static const NSString *OffcnLiveSDKVersion = @"2.7.5.0";
//事件通知 //事件通知
#define kOffcnEventNotification @"kOffcnEventNotification" #define kOffcnEventNotification @"kOffcnEventNotification"
...@@ -100,6 +100,12 @@ typedef void(^OffcnSDKEventCallBack)(OffcnSDKEvent event,NSString *urlString,NSS ...@@ -100,6 +100,12 @@ typedef void(^OffcnSDKEventCallBack)(OffcnSDKEvent event,NSString *urlString,NSS
@property (nonatomic, strong) UIWindow *oldKKeyWindow;//三方的window @property (nonatomic, strong) UIWindow *oldKKeyWindow;//三方的window
@property (nonatomic, weak) UIViewController *shareVC; @property (nonatomic, weak) UIViewController *shareVC;
//app端传过来的ssoAPPId和token
@property (nonatomic, strong) NSString *ssoAppId;
@property (nonatomic, strong) NSString *ssoToken;
@property (nonatomic, strong) NSString *ssoId;
@property (nonatomic, strong) NSString *bc_id;//业务班id
//是否支持全屏 //是否支持全屏
@property (nonatomic, assign) BOOL isFull; @property (nonatomic, assign) BOOL isFull;
...@@ -150,31 +156,26 @@ typedef void(^OffcnSDKEventCallBack)(OffcnSDKEvent event,NSString *urlString,NSS ...@@ -150,31 +156,26 @@ typedef void(^OffcnSDKEventCallBack)(OffcnSDKEvent event,NSString *urlString,NSS
@param documentPath 沙盒所有视频所在路径 @param documentPath 沙盒所有视频所在路径
@param extensionDic 根据自己需求的拓展字段,非必填 @param extensionDic 根据自己需求的拓展字段,非必填
@param seekTime 回放开始的时间,单位:秒,默认从0秒开始,根据需求是否从上次观看记录的位置开始播放,如果没有上次观看记录的位置请传0 @param seekTime 回放开始的时间,单位:秒,默认从0秒开始,根据需求是否从上次观看记录的位置开始播放,如果没有上次观看记录的位置请传0
@param ssoAppId APP的ssoAppId(注:只为教务系统提供,其他三方app传空@"")
@param ssoToken 登录后返回的用户ssoToken(注:只为教务系统提供,其他三方app传空@"")
@param bc_id 业务班id(注:只为教务系统提供,其他三方app传空@"")
*/ */
-(void)authWithNavigationController:(UINavigationController *)navigationController -(void)authWithNavigationController:(UINavigationController *)navigationController
VideoType:(OffcnVideoType)videoType VideoType:(OffcnVideoType)videoType
jumpMode:(OffcnJumpMode)jumpMode jumpMode:(OffcnJumpMode)jumpMode
appName:(NSString *)appName appName:(NSString *)appName
phone:(NSString *)phone phone:(NSString *)phone
nickname:(NSString *)nickname nickname:(NSString *)nickname
password:(NSString *)password password:(NSString *)password
uuid:(NSString *)uuid uuid:(NSString *)uuid
hook:(NSString *)hook hook:(NSString *)hook
documentPath:(NSString *)documentPath documentPath:(NSString *)documentPath
extensionDic:(NSDictionary *)extensionDic extensionDic:(NSDictionary *)extensionDic
playbackSeekTime:(NSTimeInterval)seekTime; playbackSeekTime:(NSTimeInterval)seekTime
ssoAppId:(NSString *)ssoAppId
ssoToken:(NSString *)ssoToken
bc_id:(NSString *)bc_id;
-(void)authWithNavigationController:(UINavigationController *)navigationController
VideoType:(OffcnVideoType)videoType
jumpMode:(OffcnJumpMode)jumpMode
appName:(NSString *)appName
phone:(NSString *)phone
nickname:(NSString *)nickname
password:(NSString *)password
uuid:(NSString *)uuid
hook:(NSString *)hook
documentPath:(NSString *)documentPath
extensionDic:(NSDictionary *)extensionDic;
/** /**
* resignKeyWindow,并还原到上一次的keyWindow * resignKeyWindow,并还原到上一次的keyWindow
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment