wangguolei

sdk upgrade

Showing 100 changed files with 82 additions and 1 deletions

Too many changes to show.

To preserve performance only 100 of 100+ files are displayed.

Pod::Spec.new do |s|
s.name = "HHVDoctorSDK"
s.version = "3.1.4.032315"
s.version = "3.1.4.041314"
s.summary = "和缓视频医生 SDK"
s.description = <<-DESC
... ...
... ... @@ -514,6 +514,7 @@ SWIFT_CLASS("_TtC10HHMedicSDK4TRTC")
- (void)onError:(TXLiteAVError)errCode errMsg:(NSString * _Nullable)errMsg extInfo:(NSDictionary * _Nullable)extInfo;
@end
@class UIImage;
@interface TRTC (SWIFT_EXTENSION(HHMedicSDK)) <HHRTC>
- (void)startCallWithCallee:(NSString * _Nonnull)callee orderId:(NSString * _Nullable)orderId;
... ... @@ -529,6 +530,7 @@ SWIFT_CLASS("_TtC10HHMedicSDK4TRTC")
- (void)leaveRoom;
- (void)startRingWithAudioId:(NSInteger)audioId;
- (void)stopRing;
- (void)snapshotVideoWithUserId:(NSString * _Nullable)userId imageBack:(void (^ _Nonnull)(UIImage * _Nonnull))imageBack;
@end
#if __has_attribute(external_source_symbol)
... ...
... ... @@ -191,6 +191,7 @@ extension TRTC : HHSDKVideo.HHRTC {
@objc dynamic public func leaveRoom()
@objc dynamic public func startRing(audioId: Swift.Int)
@objc dynamic public func stopRing()
@objc dynamic public func snapshotVideo(userId: Swift.String?, imageBack: @escaping (UIKit.UIImage) -> ())
}
extension TRTC : TXLiteAVSDK_TRTC.TRTCCloudDelegate {
@objc dynamic public func onEnterRoom(_ result: Swift.Int)
... ...
... ... @@ -191,6 +191,7 @@ extension TRTC : HHSDKVideo.HHRTC {
@objc dynamic public func leaveRoom()
@objc dynamic public func startRing(audioId: Swift.Int)
@objc dynamic public func stopRing()
@objc dynamic public func snapshotVideo(userId: Swift.String?, imageBack: @escaping (UIKit.UIImage) -> ())
}
extension TRTC : TXLiteAVSDK_TRTC.TRTCCloudDelegate {
@objc dynamic public func onEnterRoom(_ result: Swift.Int)
... ...
//
// HHCustomCameraView.h
// HHDoctor
//
// Created by 罗志平 on 2022/4/6.
//
#import <UIKit/UIKit.h>
typedef void (^CompletionBlock)(UIImage * _Nonnull image);
@class HHCustomCameraView;
NS_ASSUME_NONNULL_BEGIN
@protocol HHCustomCameraViewProtocol <NSObject>
- (void)customCamera:(HHCustomCameraView *)customCameraView didSnapShotVideo:(UIImage *)image;
- (void)customCameraDidCancel:(HHCustomCameraView *)customCameraView;
// TRTC判断是否是前置摄像头
- (BOOL)customCameraIsFrontCamera:(HHCustomCameraView *)customCameraView;
// 设置TRTC自动聚焦是否可用
- (void)customCamera:(HHCustomCameraView *)customCameraView enableCameraAutoFocus:(BOOL)enableCameraAutoFocus;
// TRTC切换摄像头
- (void)customCamera:(HHCustomCameraView *)customCameraView frontCamera:(BOOL)frontCamera;
// TRTC设置聚焦位置
- (void)customCamera:(HHCustomCameraView *)customCameraView focusPosition:(CGPoint)point;
// TRTC截屏
- (void)customCamera:(HHCustomCameraView *)customCamaraView snapshotVideo:(CompletionBlock)completionBlock;
@end
typedef NS_ENUM(NSInteger, ScaleEnum) {
large,
small,
};
@interface HHCustomCameraView : UIView
@property (nonatomic, weak) id<HHCustomCameraViewProtocol> delegate;
+ (HHCustomCameraView *)customCameraViewWithFrame:(CGRect)frame;
- (void)scale:(ScaleEnum)scaleEnum;
@end
NS_ASSUME_NONNULL_END
... ...
//
// HHDeviceUtils.h
// HHDoctor
//
// Created by 罗志平 on 2022/3/10.
//
#import <Foundation/Foundation.h>
NS_ASSUME_NONNULL_BEGIN
@interface HHDeviceUtils : NSObject
/// 判断是否是刘海屏
+ (BOOL)isiPhoneXByBottomInset;
@end
NS_ASSUME_NONNULL_END
... ...
... ... @@ -591,6 +591,7 @@ SWIFT_CLASS("_TtC10HHSDKVideo23HHPhotoPickerController")
- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)aDecoder OBJC_DESIGNATED_INITIALIZER;
@end
@class UIImage;
/// 音视频回调
SWIFT_PROTOCOL("_TtP10HHSDKVideo5HHRTC_")
... ... @@ -623,6 +624,7 @@ SWIFT_PROTOCOL("_TtP10HHSDKVideo5HHRTC_")
- (void)startRingWithAudioId:(NSInteger)audioId;
/// 结束响铃
- (void)stopRing;
- (void)snapshotVideoWithUserId:(NSString * _Nullable)userId imageBack:(void (^ _Nonnull)(UIImage * _Nonnull))imageBack;
@end
... ...
... ... @@ -1243,6 +1243,7 @@ extension HHRealNameInputView : UIKit.UITextFieldDelegate {
@objc optional func hangUp(callId: Swift.UInt64)
@objc optional func startRing(audioId: Swift.Int)
@objc optional func stopRing()
@objc optional func snapshotVideo(userId: Swift.String?, imageBack: @escaping (UIKit.UIImage) -> ())
}
public protocol HHRTCDelegate : ObjectiveC.NSObject {
func onEnterRoom()
... ...
... ... @@ -1243,6 +1243,7 @@ extension HHRealNameInputView : UIKit.UITextFieldDelegate {
@objc optional func hangUp(callId: Swift.UInt64)
@objc optional func startRing(audioId: Swift.Int)
@objc optional func stopRing()
@objc optional func snapshotVideo(userId: Swift.String?, imageBack: @escaping (UIKit.UIImage) -> ())
}
public protocol HHRTCDelegate : ObjectiveC.NSObject {
func onEnterRoom()
... ...