This repository has been archived by the owner on Oct 9, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 154
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Release SealTalk Demo version 1.3.10
- Loading branch information
Showing
339 changed files
with
667 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Git LFS file not shown
4 changes: 2 additions & 2 deletions
4
ios-rongimdemo/framework/Blink.framework/Headers/BlinkEngine.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
-3 Bytes
(100%)
ios-rongimdemo/framework/JrmfIMLib/JrmfPacketKit.framework/Info.plist
Binary file not shown.
Binary file modified
BIN
+1.55 MB
(100%)
ios-rongimdemo/framework/JrmfIMLib/JrmfPacketKit.framework/JrmfPacketKit
Binary file not shown.
Binary file added
BIN
+2.43 KB
ios-rongimdemo/framework/PTT/RongCloudPTT.bundle/back_to_conversation.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.21 KB
ios-rongimdemo/framework/PTT/RongCloudPTT.bundle/ptt_share_button.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.21 KB
ios-rongimdemo/framework/PTT/RongCloudPTT.bundle/ptt_share_button_hover.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
132 changes: 132 additions & 0 deletions
132
ios-rongimdemo/framework/PTT/RongPTTKit.framework/Headers/RCPTT.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,132 @@ | ||
// | ||
// RCPTT.h | ||
// RongPTTKit | ||
// | ||
// Created by Sin on 16/12/29. | ||
// Copyright © 2016年 RongCloud. All rights reserved. | ||
// | ||
|
||
#import <RongIMKit/RongIMKit.h> | ||
#import <RongPTTLib/RongPTTLib.h> | ||
#import <UIKit/UIKit.h> | ||
|
||
/* | ||
通知的object为@{@"action":isEnd?@"end":@"start"} | ||
*/ | ||
|
||
FOUNDATION_EXPORT NSString *const RCPTTSessionStatusChangeNotification; | ||
|
||
@class RCPTT; | ||
|
||
/** | ||
RCPTTKit的代理,注:所有的代理方法全部是在异步线程中,不在主线程 | ||
*/ | ||
@protocol RCPTTKitDelegate <NSObject> | ||
|
||
/** | ||
ptt会话开始 | ||
@param ptt ptt | ||
@param session 当前ptt会话对象 | ||
*/ | ||
- (void)ptt:(RCPTT *)ptt sessionDidStart:(RCPTTSession *)session; | ||
|
||
/** | ||
ptt会话的参与者发生变化 | ||
@param ptt ptt | ||
@param userIds 当前ptt的所有参与者 | ||
@param session 当前ptt会话对象 | ||
*/ | ||
- (void)ptt:(RCPTT *)ptt participantsDidChange:(NSArray *)userIds inPTTSession:(RCPTTSession *)session; | ||
|
||
/** | ||
麦克风持有者发生变化 | ||
@param ptt ptt | ||
@param userId 当前麦克风持有者id,如果没有人持有麦克风,那么为@"null" | ||
@param session 当前ptt会话对象 | ||
*/ | ||
- (void)ptt:(RCPTT *)ptt micHolderDidChange:(NSString *)userId inPTTSession:(RCPTTSession *)session; | ||
|
||
/** | ||
ptt会话结束 | ||
@param ptt ptt | ||
@param session 当前ptt会话对象 | ||
*/ | ||
- (void)ptt:(RCPTT *)ptt sessionDidTerminate:(RCPTTSession *)session; | ||
|
||
/** | ||
说话的时间限制到了 | ||
@param ptt ptt | ||
@param session 当前ptt会话对象 | ||
*/ | ||
- (void)ptt:(RCPTT *)ptt speakTimeDidExpire:(RCPTTSession *)session; | ||
|
||
@end | ||
|
||
/** | ||
PTT功能核心单例类 | ||
*/ | ||
@interface RCPTT : NSObject | ||
|
||
/** | ||
单例方法 | ||
@return RCPTT单例对象 | ||
*/ | ||
+ (instancetype)sharedRCPTT; | ||
|
||
#pragma mark - UI | ||
/** | ||
当前登录用户的id | ||
*/ | ||
@property(nonatomic, copy) NSString *currentUserId; | ||
|
||
/** | ||
RCPTTStatusView的背景色 | ||
*/ | ||
@property(nonatomic, strong) UIColor *statusViewColor; | ||
|
||
/** | ||
RCPTTTalkViewController上面头像所在view的颜色 | ||
*/ | ||
@property(nonatomic, strong) UIColor *headerViewColor; | ||
|
||
#pragma mark - - | ||
|
||
@property(nonatomic, weak) id<RCPTTKitDelegate> delegate; | ||
|
||
@property(nonatomic, assign, readonly) RCConversationType conversationType; | ||
|
||
@property(nonatomic, copy, readonly) NSString *targetId; | ||
|
||
@property(nonatomic, assign, readonly) BOOL isInSession; | ||
|
||
@property(nonatomic, strong, readonly) RCPTTSession *currentSession; | ||
|
||
@property(nonatomic, strong, readonly) RCPTTSession *lastSession; | ||
|
||
- (void)joinSession:(RCConversationType)conversationType | ||
targetId:(NSString *)targetId | ||
success:(void (^)(NSArray *participants))successBlock | ||
error:(void (^)(void))errorBlock; | ||
|
||
- (void)leaveSession:(RCConversationType)conversationType | ||
targetId:(NSString *)targetId | ||
success:(void (^)(void))successBlock | ||
error:(void (^)(void))errorBlock; | ||
|
||
- (void)startSpeak:(RCConversationType)conversationType | ||
targetId:(NSString *)targetId | ||
success:(void (^)(long))successBlock | ||
error:(void (^)(RCPTTErrorCode))errorBlock; | ||
|
||
- (void)stopSpeak:(RCConversationType)conversationType | ||
targetId:(NSString *)targetId | ||
success:(void (^)(void))successBlock | ||
error:(void (^)(RCPTTErrorCode))errorBlock; | ||
|
||
@end |
31 changes: 31 additions & 0 deletions
31
ios-rongimdemo/framework/PTT/RongPTTKit.framework/Headers/RCPTTBeginMessageCell.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
// | ||
// RCPTTBeginMessageCell.h | ||
// RongPTTKit | ||
// | ||
// Created by Sin on 17/1/16. | ||
// Copyright © 2017年 RongCloud. All rights reserved. | ||
// | ||
|
||
#import <RongIMKit/RongIMKit.h> | ||
#import <RongPTTLib/RongPTTLib.h> | ||
|
||
@interface RCPTTBeginMessageCell : RCMessageCell | ||
/*! | ||
文本内容的Label | ||
*/ | ||
@property(strong, nonatomic) UILabel *textLabel; | ||
|
||
/*! | ||
背景View | ||
*/ | ||
@property(nonatomic, strong) UIImageView *bubbleBackgroundView; | ||
|
||
/*! | ||
根据消息内容获取显示的尺寸 | ||
@param message 消息内容 | ||
@return 显示的View尺寸 | ||
*/ | ||
+ (CGSize)getBubbleBackgroundViewSize:(RCPTTBeginMessage *)message; | ||
@end |
19 changes: 19 additions & 0 deletions
19
ios-rongimdemo/framework/PTT/RongPTTKit.framework/Headers/RCPTTCommonDefine.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
// | ||
// RCPTTCommonDefine.h | ||
// RongPTTKit | ||
// | ||
// Created by Sin on 16/12/27. | ||
// Copyright © 2016年 RongCloud. All rights reserved. | ||
// | ||
|
||
#ifndef RCPTTCommonDefine_h | ||
#define RCPTTCommonDefine_h | ||
|
||
#import <UIKit/UIKit.h> | ||
|
||
// RCPTTStatusView状态需要发生改变的时候会post该通知 | ||
static NSString *RCPTTStatusViewStatusChangeNotification = @"RCPTTStatusViewStatusChangeNotification"; | ||
|
||
typedef NS_ENUM(NSUInteger, RCPTTStatus) { RCPTTStatusTalking }; | ||
|
||
#endif /* RCPTTCommonDefine_h */ |
Oops, something went wrong.