Commit 6220c91b by zhangyunjie

2.7.5.1

parent cd9b5a3b
......@@ -8,7 +8,7 @@
Pod::Spec.new do |s|
s.name = 'OffcnLiveSDKiOS'
s.version = '2.7.5.0'
s.version = '2.7.5.1'
s.summary = 'OffcnLiveSDKiOS.'
s.description = <<-DESC
......
......@@ -9,7 +9,7 @@
#import <UIKit/UIKit.h>
#import "OffcnShareWindow.h"
static const NSString *OffcnLiveSDKVersion = @"2.7.5.0";
static const NSString *OffcnLiveSDKVersion = @"2.7.5.1";
//事件通知
#define kOffcnEventNotification @"kOffcnEventNotification"
......@@ -177,6 +177,32 @@ typedef void(^OffcnSDKEventCallBack)(OffcnSDKEvent event,NSString *urlString,NSS
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
playbackSeekTime:(NSTimeInterval)seekTime;
-(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
*/
......
/*
* Copyright 2015 The WebRTC Project Authors. All rights reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contributing project authors may
* be found in the AUTHORS file in the root of the source tree.
*/
#import <Foundation/Foundation.h>
/** Class used to estimate bitrate based on byte count. It is expected that
* byte count is monotonocially increasing. This class tracks the times that
* byte count is updated, and measures the bitrate based on the byte difference
* over the interval between updates.
*/
@interface ARDBitrateTracker : NSObject
/** The bitrate in bits per second. */
@property(nonatomic, readonly) double bitrate;
/** The bitrate as a formatted string in bps, Kbps or Mbps. */
@property(nonatomic, readonly) NSString *bitrateString;
/** Converts the bitrate to a readable format in bps, Kbps or Mbps. */
+ (NSString *)bitrateStringForBitrate:(double)bitrate;
/** Updates the tracked bitrate with the new byte count. */
- (void)updateBitrateWithCurrentByteCount:(NSInteger)byteCount;
@end
/*
* Copyright 2015 The WebRTC Project Authors. All rights reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contributing project authors may
* be found in the AUTHORS file in the root of the source tree.
*/
#import <Foundation/Foundation.h>
@class RTCLegacyStatsReport;
/** Class used to accumulate stats information into a single displayable string.
*/
@interface ARDStatsBuilder : NSObject
/** String that represents the accumulated stats reports passed into this
* class.
*/
@property(nonatomic, readonly) NSString *statsString;
/** Parses the information in the stats report into an appropriate internal
* format used to generate the stats string.
*/
- (void)parseStatsReport:(RTCLegacyStatsReport *)statsReport;
@end
/*
* Copyright 2015 The WebRTC Project Authors. All rights reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contributing project authors may
* be found in the AUTHORS file in the root of the source tree.
*/
#import <UIKit/UIKit.h>
@interface ARDStatsView : UIView
- (void)setStats:(NSArray *)stats;
@end
/*
* Copyright 2014 The WebRTC Project Authors. All rights reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contributing project authors may
* be found in the AUTHORS file in the root of the source tree.
*/
#import <Foundation/Foundation.h>
@interface NSDictionary (ARDUtilites)
// Creates a dictionary with the keys and values in the JSON object.
+ (NSDictionary *)dictionaryWithJSONString:(NSString *)jsonString;
+ (NSDictionary *)dictionaryWithJSONData:(NSData *)jsonData;
@end
@interface NSURLConnection (ARDUtilities)
// Issues an asynchronous request that calls back on main queue.
+ (void)sendAsyncRequest:(NSURLRequest *)request
completionHandler:
(void (^)(NSURLResponse *response, NSData *data, NSError *error))completionHandler;
// Posts data to the specified URL.
+ (void)sendAsyncPostToURL:(NSURL *)url
withData:(NSData *)data
completionHandler:(void (^)(BOOL succeeded, NSData *data))completionHandler;
@end
NSInteger ARDGetCpuUsagePercentage(void);
//
// RTCLargeFactory.h
// WebRTC
//
// Created by offcnPlayer on 2021/11/26.
// Copyright © 2021 xiaolin zhang. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "WebRTC.h"
#import "RTCMacros.h"
NS_ASSUME_NONNULL_BEGIN
typedef NS_ENUM(NSInteger, RTCMsgType) {
RTCAPIMsg,
RTCSDPMsg,
};
typedef NS_ENUM(NSInteger, RTCErrorType) {
RTCLargePushChannelFailed,
RTCLargeMessageChannelFailed,
RTCLargeAllPullChannelFailed,
RTCLargeInternalChannelFailed,
};
@protocol RTCLargeFactoryProtocol <NSObject>
- (void)onPullStreamSDP:(NSString*)sdp;
- (void)onPushStreamSDP:(NSString*)sdp;
- (void)onLocalPreview:(UIView*)localView;
- (void)onRTCAPIMessage:(NSData*)msg;
//- (void)onRTCSDPMessage:(NSData*)msg;
- (void)onPeerView:(NSString*)peerID peerView:(UIView*)peerView;
- (void)onError:(RTCErrorType)errorType;
@end
@interface RTCLargeFactory : NSObject
//初始化
- (instancetype)initWithDelegate:(id<RTCLargeFactoryProtocol>)delegate;
//开始拉流
- (BOOL)initPullChannel;
//设置拉流sdp
- (void)setPullChannelParams:(NSString*)sdp;
//订阅流
- (void)subscribeStream:(NSData*)streamInfo;
//取消订阅
- (void)unSubscribeStream:(NSString*)streamID;
//开始推流
- (void)initPushChannel;
//设置推流sdp
- (void)setPushChannelParams:(NSString*)sdp;
//结束推流
- (void)stopPushStream;
//结束拉流
- (void)stopPullStream:(NSString*)peerID;
//本地静音开关
- (void)muteLocalAudioStream:(BOOL)mute;
//本地视频开关
- (void)muteLoacalVideoStream:(BOOL)mute;
//销毁关闭通道
- (void)shutdown;
//发送消息
- (void)sendMsg:(NSData*)msg msgType:(RTCMsgType)msgType;
@end
NS_ASSUME_NONNULL_END
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