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.

1 Pod::Spec.new do |s| 1 Pod::Spec.new do |s|
2 s.name = "HHVDoctorSDK" 2 s.name = "HHVDoctorSDK"
3 3
4 - s.version = "3.1.4.032315" 4 + s.version = "3.1.4.041314"
5 s.summary = "和缓视频医生 SDK" 5 s.summary = "和缓视频医生 SDK"
6 6
7 s.description = <<-DESC 7 s.description = <<-DESC
@@ -514,6 +514,7 @@ SWIFT_CLASS("_TtC10HHMedicSDK4TRTC") @@ -514,6 +514,7 @@ SWIFT_CLASS("_TtC10HHMedicSDK4TRTC")
514 - (void)onError:(TXLiteAVError)errCode errMsg:(NSString * _Nullable)errMsg extInfo:(NSDictionary * _Nullable)extInfo; 514 - (void)onError:(TXLiteAVError)errCode errMsg:(NSString * _Nullable)errMsg extInfo:(NSDictionary * _Nullable)extInfo;
515 @end 515 @end
516 516
  517 +@class UIImage;
517 518
518 @interface TRTC (SWIFT_EXTENSION(HHMedicSDK)) <HHRTC> 519 @interface TRTC (SWIFT_EXTENSION(HHMedicSDK)) <HHRTC>
519 - (void)startCallWithCallee:(NSString * _Nonnull)callee orderId:(NSString * _Nullable)orderId; 520 - (void)startCallWithCallee:(NSString * _Nonnull)callee orderId:(NSString * _Nullable)orderId;
@@ -529,6 +530,7 @@ SWIFT_CLASS("_TtC10HHMedicSDK4TRTC") @@ -529,6 +530,7 @@ SWIFT_CLASS("_TtC10HHMedicSDK4TRTC")
529 - (void)leaveRoom; 530 - (void)leaveRoom;
530 - (void)startRingWithAudioId:(NSInteger)audioId; 531 - (void)startRingWithAudioId:(NSInteger)audioId;
531 - (void)stopRing; 532 - (void)stopRing;
  533 +- (void)snapshotVideoWithUserId:(NSString * _Nullable)userId imageBack:(void (^ _Nonnull)(UIImage * _Nonnull))imageBack;
532 @end 534 @end
533 535
534 #if __has_attribute(external_source_symbol) 536 #if __has_attribute(external_source_symbol)
@@ -191,6 +191,7 @@ extension TRTC : HHSDKVideo.HHRTC { @@ -191,6 +191,7 @@ extension TRTC : HHSDKVideo.HHRTC {
191 @objc dynamic public func leaveRoom() 191 @objc dynamic public func leaveRoom()
192 @objc dynamic public func startRing(audioId: Swift.Int) 192 @objc dynamic public func startRing(audioId: Swift.Int)
193 @objc dynamic public func stopRing() 193 @objc dynamic public func stopRing()
  194 + @objc dynamic public func snapshotVideo(userId: Swift.String?, imageBack: @escaping (UIKit.UIImage) -> ())
194 } 195 }
195 extension TRTC : TXLiteAVSDK_TRTC.TRTCCloudDelegate { 196 extension TRTC : TXLiteAVSDK_TRTC.TRTCCloudDelegate {
196 @objc dynamic public func onEnterRoom(_ result: Swift.Int) 197 @objc dynamic public func onEnterRoom(_ result: Swift.Int)
@@ -191,6 +191,7 @@ extension TRTC : HHSDKVideo.HHRTC { @@ -191,6 +191,7 @@ extension TRTC : HHSDKVideo.HHRTC {
191 @objc dynamic public func leaveRoom() 191 @objc dynamic public func leaveRoom()
192 @objc dynamic public func startRing(audioId: Swift.Int) 192 @objc dynamic public func startRing(audioId: Swift.Int)
193 @objc dynamic public func stopRing() 193 @objc dynamic public func stopRing()
  194 + @objc dynamic public func snapshotVideo(userId: Swift.String?, imageBack: @escaping (UIKit.UIImage) -> ())
194 } 195 }
195 extension TRTC : TXLiteAVSDK_TRTC.TRTCCloudDelegate { 196 extension TRTC : TXLiteAVSDK_TRTC.TRTCCloudDelegate {
196 @objc dynamic public func onEnterRoom(_ result: Swift.Int) 197 @objc dynamic public func onEnterRoom(_ result: Swift.Int)
  1 +//
  2 +// HHCustomCameraView.h
  3 +// HHDoctor
  4 +//
  5 +// Created by 罗志平 on 2022/4/6.
  6 +//
  7 +
  8 +#import <UIKit/UIKit.h>
  9 +
  10 +typedef void (^CompletionBlock)(UIImage * _Nonnull image);
  11 +
  12 +@class HHCustomCameraView;
  13 +
  14 +NS_ASSUME_NONNULL_BEGIN
  15 +
  16 +@protocol HHCustomCameraViewProtocol <NSObject>
  17 +
  18 +- (void)customCamera:(HHCustomCameraView *)customCameraView didSnapShotVideo:(UIImage *)image;
  19 +
  20 +- (void)customCameraDidCancel:(HHCustomCameraView *)customCameraView;
  21 +
  22 +// TRTC判断是否是前置摄像头
  23 +- (BOOL)customCameraIsFrontCamera:(HHCustomCameraView *)customCameraView;
  24 +
  25 +// 设置TRTC自动聚焦是否可用
  26 +- (void)customCamera:(HHCustomCameraView *)customCameraView enableCameraAutoFocus:(BOOL)enableCameraAutoFocus;
  27 +
  28 +// TRTC切换摄像头
  29 +- (void)customCamera:(HHCustomCameraView *)customCameraView frontCamera:(BOOL)frontCamera;
  30 +
  31 +// TRTC设置聚焦位置
  32 +- (void)customCamera:(HHCustomCameraView *)customCameraView focusPosition:(CGPoint)point;
  33 +
  34 +// TRTC截屏
  35 +- (void)customCamera:(HHCustomCameraView *)customCamaraView snapshotVideo:(CompletionBlock)completionBlock;
  36 +
  37 +@end
  38 +
  39 +typedef NS_ENUM(NSInteger, ScaleEnum) {
  40 + large,
  41 + small,
  42 +};
  43 +
  44 +@interface HHCustomCameraView : UIView
  45 +
  46 +@property (nonatomic, weak) id<HHCustomCameraViewProtocol> delegate;
  47 +
  48 ++ (HHCustomCameraView *)customCameraViewWithFrame:(CGRect)frame;
  49 +
  50 +- (void)scale:(ScaleEnum)scaleEnum;
  51 +
  52 +@end
  53 +
  54 +NS_ASSUME_NONNULL_END
  1 +//
  2 +// HHDeviceUtils.h
  3 +// HHDoctor
  4 +//
  5 +// Created by 罗志平 on 2022/3/10.
  6 +//
  7 +
  8 +#import <Foundation/Foundation.h>
  9 +
  10 +NS_ASSUME_NONNULL_BEGIN
  11 +
  12 +@interface HHDeviceUtils : NSObject
  13 +
  14 +/// 判断是否是刘海屏
  15 ++ (BOOL)isiPhoneXByBottomInset;
  16 +
  17 +@end
  18 +
  19 +NS_ASSUME_NONNULL_END
@@ -591,6 +591,7 @@ SWIFT_CLASS("_TtC10HHSDKVideo23HHPhotoPickerController") @@ -591,6 +591,7 @@ SWIFT_CLASS("_TtC10HHSDKVideo23HHPhotoPickerController")
591 - (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)aDecoder OBJC_DESIGNATED_INITIALIZER; 591 - (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)aDecoder OBJC_DESIGNATED_INITIALIZER;
592 @end 592 @end
593 593
  594 +@class UIImage;
594 595
595 /// 音视频回调 596 /// 音视频回调
596 SWIFT_PROTOCOL("_TtP10HHSDKVideo5HHRTC_") 597 SWIFT_PROTOCOL("_TtP10HHSDKVideo5HHRTC_")
@@ -623,6 +624,7 @@ SWIFT_PROTOCOL("_TtP10HHSDKVideo5HHRTC_") @@ -623,6 +624,7 @@ SWIFT_PROTOCOL("_TtP10HHSDKVideo5HHRTC_")
623 - (void)startRingWithAudioId:(NSInteger)audioId; 624 - (void)startRingWithAudioId:(NSInteger)audioId;
624 /// 结束响铃 625 /// 结束响铃
625 - (void)stopRing; 626 - (void)stopRing;
  627 +- (void)snapshotVideoWithUserId:(NSString * _Nullable)userId imageBack:(void (^ _Nonnull)(UIImage * _Nonnull))imageBack;
626 @end 628 @end
627 629
628 630
@@ -1243,6 +1243,7 @@ extension HHRealNameInputView : UIKit.UITextFieldDelegate { @@ -1243,6 +1243,7 @@ extension HHRealNameInputView : UIKit.UITextFieldDelegate {
1243 @objc optional func hangUp(callId: Swift.UInt64) 1243 @objc optional func hangUp(callId: Swift.UInt64)
1244 @objc optional func startRing(audioId: Swift.Int) 1244 @objc optional func startRing(audioId: Swift.Int)
1245 @objc optional func stopRing() 1245 @objc optional func stopRing()
  1246 + @objc optional func snapshotVideo(userId: Swift.String?, imageBack: @escaping (UIKit.UIImage) -> ())
1246 } 1247 }
1247 public protocol HHRTCDelegate : ObjectiveC.NSObject { 1248 public protocol HHRTCDelegate : ObjectiveC.NSObject {
1248 func onEnterRoom() 1249 func onEnterRoom()
@@ -1243,6 +1243,7 @@ extension HHRealNameInputView : UIKit.UITextFieldDelegate { @@ -1243,6 +1243,7 @@ extension HHRealNameInputView : UIKit.UITextFieldDelegate {
1243 @objc optional func hangUp(callId: Swift.UInt64) 1243 @objc optional func hangUp(callId: Swift.UInt64)
1244 @objc optional func startRing(audioId: Swift.Int) 1244 @objc optional func startRing(audioId: Swift.Int)
1245 @objc optional func stopRing() 1245 @objc optional func stopRing()
  1246 + @objc optional func snapshotVideo(userId: Swift.String?, imageBack: @escaping (UIKit.UIImage) -> ())
1246 } 1247 }
1247 public protocol HHRTCDelegate : ObjectiveC.NSObject { 1248 public protocol HHRTCDelegate : ObjectiveC.NSObject {
1248 func onEnterRoom() 1249 func onEnterRoom()