Showing
68 changed files
with
22 additions
and
2 deletions
This file is too large to display.
| @@ -204,6 +204,7 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); | @@ -204,6 +204,7 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); | ||
| 204 | #endif | 204 | #endif |
| 205 | 205 | ||
| 206 | @class HHSDKOptions; | 206 | @class HHSDKOptions; |
| 207 | +@protocol HHMVideoDelegate; | ||
| 207 | 208 | ||
| 208 | SWIFT_CLASS("_TtC10HHMedicSDK5HHSDK") | 209 | SWIFT_CLASS("_TtC10HHMedicSDK5HHSDK") |
| 209 | @interface HHSDK : NSObject | 210 | @interface HHSDK : NSObject |
| @@ -214,6 +215,11 @@ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong, getter=defau | @@ -214,6 +215,11 @@ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong, getter=defau | ||
| 214 | /// \param option 可选的 SDK 配置 | 215 | /// \param option 可选的 SDK 配置 |
| 215 | /// | 216 | /// |
| 216 | - (void)startWithOption:(HHSDKOptions * _Nonnull)option; | 217 | - (void)startWithOption:(HHSDKOptions * _Nonnull)option; |
| 218 | +/// 添加视频监听 | ||
| 219 | +/// \param delegate 代理 | ||
| 220 | +/// | ||
| 221 | +- (void)addWithDelegate:(id <HHMVideoDelegate> _Nonnull)delegate; | ||
| 222 | +- (void)removeWithDelegate:(id <HHMVideoDelegate> _Nonnull)delegate; | ||
| 217 | - (nonnull instancetype)init SWIFT_UNAVAILABLE; | 223 | - (nonnull instancetype)init SWIFT_UNAVAILABLE; |
| 218 | + (nonnull instancetype)new SWIFT_DEPRECATED_MSG("-init is unavailable"); | 224 | + (nonnull instancetype)new SWIFT_DEPRECATED_MSG("-init is unavailable"); |
| 219 | @end | 225 | @end |
No preview for this file type
| @@ -16,6 +16,8 @@ import TXLiteAVSDK_TRTC | @@ -16,6 +16,8 @@ import TXLiteAVSDK_TRTC | ||
| 16 | } | 16 | } |
| 17 | @objc public func start(option: HHMedicSDK.HHSDKOptions) | 17 | @objc public func start(option: HHMedicSDK.HHSDKOptions) |
| 18 | public var timKickoutCallback: (() -> Swift.Void)? | 18 | public var timKickoutCallback: (() -> Swift.Void)? |
| 19 | + @objc public func add(delegate: HHSDKVideo.HHMVideoDelegate) | ||
| 20 | + @objc public func remove(delegate: HHSDKVideo.HHMVideoDelegate) | ||
| 19 | @objc deinit | 21 | @objc deinit |
| 20 | } | 22 | } |
| 21 | extension HHSDK { | 23 | extension HHSDK { |
No preview for this file type
No preview for this file type
| @@ -16,6 +16,8 @@ import TXLiteAVSDK_TRTC | @@ -16,6 +16,8 @@ import TXLiteAVSDK_TRTC | ||
| 16 | } | 16 | } |
| 17 | @objc public func start(option: HHMedicSDK.HHSDKOptions) | 17 | @objc public func start(option: HHMedicSDK.HHSDKOptions) |
| 18 | public var timKickoutCallback: (() -> Swift.Void)? | 18 | public var timKickoutCallback: (() -> Swift.Void)? |
| 19 | + @objc public func add(delegate: HHSDKVideo.HHMVideoDelegate) | ||
| 20 | + @objc public func remove(delegate: HHSDKVideo.HHMVideoDelegate) | ||
| 19 | @objc deinit | 21 | @objc deinit |
| 20 | } | 22 | } |
| 21 | extension HHSDK { | 23 | extension HHSDK { |
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
| @@ -426,6 +426,7 @@ typedef SWIFT_ENUM(NSInteger, HHMCallingState, open) { | @@ -426,6 +426,7 @@ typedef SWIFT_ENUM(NSInteger, HHMCallingState, open) { | ||
| 426 | 426 | ||
| 427 | @protocol OptionProtocal; | 427 | @protocol OptionProtocal; |
| 428 | @protocol HHRTC; | 428 | @protocol HHRTC; |
| 429 | +@protocol HHMVideoDelegate; | ||
| 429 | 430 | ||
| 430 | SWIFT_CLASS("_TtC10HHSDKVideo6HHMSDK") | 431 | SWIFT_CLASS("_TtC10HHSDKVideo6HHMSDK") |
| 431 | @interface HHMSDK : NSObject | 432 | @interface HHMSDK : NSObject |
| @@ -458,6 +459,11 @@ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong, getter=defau | @@ -458,6 +459,11 @@ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong, getter=defau | ||
| 458 | /// | 459 | /// |
| 459 | - (void)logout:(void (^ _Nullable)(NSString * _Nullable))callback; | 460 | - (void)logout:(void (^ _Nullable)(NSString * _Nullable))callback; |
| 460 | - (void)terminate; | 461 | - (void)terminate; |
| 462 | +/// 添加视频监听 | ||
| 463 | +/// \param delegate 代理 | ||
| 464 | +/// | ||
| 465 | +- (void)addWithDelegate:(id <HHMVideoDelegate> _Nonnull)delegate; | ||
| 466 | +- (void)removeWithDelegate:(id <HHMVideoDelegate> _Nonnull)delegate; | ||
| 461 | - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; | 467 | - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; |
| 462 | @end | 468 | @end |
| 463 | 469 |
No preview for this file type
| @@ -1058,6 +1058,8 @@ public struct EKAttributes { | @@ -1058,6 +1058,8 @@ public struct EKAttributes { | ||
| 1058 | @objc public func autoLogin(uuid: Swift.Int, completion: @escaping HHSDKBase.HHLoginHandler) | 1058 | @objc public func autoLogin(uuid: Swift.Int, completion: @escaping HHSDKBase.HHLoginHandler) |
| 1059 | @objc public func logout(_ callback: ((Swift.String?) -> Swift.Void)? = nil) | 1059 | @objc public func logout(_ callback: ((Swift.String?) -> Swift.Void)? = nil) |
| 1060 | @objc public func terminate() | 1060 | @objc public func terminate() |
| 1061 | + @objc public func add(delegate: HHSDKVideo.HHMVideoDelegate) | ||
| 1062 | + @objc public func remove(delegate: HHSDKVideo.HHMVideoDelegate) | ||
| 1061 | @objc override dynamic public init() | 1063 | @objc override dynamic public init() |
| 1062 | @objc deinit | 1064 | @objc deinit |
| 1063 | } | 1065 | } |
No preview for this file type
No preview for this file type
| @@ -1058,6 +1058,8 @@ public struct EKAttributes { | @@ -1058,6 +1058,8 @@ public struct EKAttributes { | ||
| 1058 | @objc public func autoLogin(uuid: Swift.Int, completion: @escaping HHSDKBase.HHLoginHandler) | 1058 | @objc public func autoLogin(uuid: Swift.Int, completion: @escaping HHSDKBase.HHLoginHandler) |
| 1059 | @objc public func logout(_ callback: ((Swift.String?) -> Swift.Void)? = nil) | 1059 | @objc public func logout(_ callback: ((Swift.String?) -> Swift.Void)? = nil) |
| 1060 | @objc public func terminate() | 1060 | @objc public func terminate() |
| 1061 | + @objc public func add(delegate: HHSDKVideo.HHMVideoDelegate) | ||
| 1062 | + @objc public func remove(delegate: HHSDKVideo.HHMVideoDelegate) | ||
| 1061 | @objc override dynamic public init() | 1063 | @objc override dynamic public init() |
| 1062 | @objc deinit | 1064 | @objc deinit |
| 1063 | } | 1065 | } |
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
-
Please register or login to post a comment