Compare commits
11 Commits
2.1.3
...
yinmeng_en
Author | SHA1 | Date | |
---|---|---|---|
![]() |
54bcb13e86 | ||
![]() |
5f9aa7edea | ||
![]() |
b1e6c707b8 | ||
![]() |
1b5cbfad7d | ||
![]() |
1d1c6014c5 | ||
![]() |
8c5a8f7118 | ||
![]() |
a7dd7eb7a2 | ||
![]() |
cb0e706f44 | ||
![]() |
b10c35556d | ||
![]() |
db7b798590 | ||
![]() |
495613e2d7 |
@@ -11695,7 +11695,7 @@
|
|||||||
"$(inherited)",
|
"$(inherited)",
|
||||||
"@executable_path/Frameworks",
|
"@executable_path/Frameworks",
|
||||||
);
|
);
|
||||||
MARKETING_VERSION = 2.1.3;
|
MARKETING_VERSION = 2.1.5;
|
||||||
OTHER_LDFLAGS = (
|
OTHER_LDFLAGS = (
|
||||||
"$(inherited)",
|
"$(inherited)",
|
||||||
"-ObjC",
|
"-ObjC",
|
||||||
@@ -11950,7 +11950,7 @@
|
|||||||
"$(inherited)",
|
"$(inherited)",
|
||||||
"@executable_path/Frameworks",
|
"@executable_path/Frameworks",
|
||||||
);
|
);
|
||||||
MARKETING_VERSION = 2.1.3;
|
MARKETING_VERSION = 2.1.5;
|
||||||
OTHER_LDFLAGS = (
|
OTHER_LDFLAGS = (
|
||||||
"$(inherited)",
|
"$(inherited)",
|
||||||
"-ObjC",
|
"-ObjC",
|
||||||
|
@@ -31,7 +31,7 @@
|
|||||||
</Testables>
|
</Testables>
|
||||||
</TestAction>
|
</TestAction>
|
||||||
<LaunchAction
|
<LaunchAction
|
||||||
buildConfiguration = "Release"
|
buildConfiguration = "Debug"
|
||||||
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
|
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
|
||||||
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
|
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
|
||||||
launchStyle = "0"
|
launchStyle = "0"
|
||||||
|
@@ -1,11 +0,0 @@
|
|||||||
{
|
|
||||||
"colors" : [
|
|
||||||
{
|
|
||||||
"idiom" : "universal"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"info" : {
|
|
||||||
"author" : "xcode",
|
|
||||||
"version" : 1
|
|
||||||
}
|
|
||||||
}
|
|
Binary file not shown.
Before Width: | Height: | Size: 6.1 KiB After Width: | Height: | Size: 5.6 KiB |
Binary file not shown.
Before Width: | Height: | Size: 10 KiB After Width: | Height: | Size: 9.1 KiB |
@@ -35,7 +35,10 @@ typedef NS_ENUM(NSInteger, BackMusicPlayState) {
|
|||||||
- ❌ 业务逻辑不要侵入 RctImpl 。
|
- ❌ 业务逻辑不要侵入 RctImpl 。
|
||||||
*/
|
*/
|
||||||
@interface RtcManager : NSObject
|
@interface RtcManager : NSObject
|
||||||
|
///因为跨房pk结束后会闭麦,用这个限制不要关麦
|
||||||
|
@property(nonatomic,assign) BOOL isAnckorPk;
|
||||||
|
///因为最小化进房闭麦问题,用这个限制不要关麦
|
||||||
|
@property(nonatomic,assign) BOOL isMiniEnterk;
|
||||||
/**
|
/**
|
||||||
* 是否静音(静别人)
|
* 是否静音(静别人)
|
||||||
* YES:🔇虽然你们麦位上在说话,但是我就是不听。🙉
|
* YES:🔇虽然你们麦位上在说话,但是我就是不听。🙉
|
||||||
|
@@ -25,7 +25,7 @@
|
|||||||
//公屏限制最大字数
|
//公屏限制最大字数
|
||||||
#define MAX_STARWORDS_LENGTH 300
|
#define MAX_STARWORDS_LENGTH 300
|
||||||
|
|
||||||
@interface XPRoomSendTextView ()
|
@interface XPRoomSendTextView ()<UITextFieldDelegate>
|
||||||
///
|
///
|
||||||
@property (nonatomic,strong) UIStackView *stackView;
|
@property (nonatomic,strong) UIStackView *stackView;
|
||||||
///输入框
|
///输入框
|
||||||
@@ -195,7 +195,10 @@
|
|||||||
self.sendButton.enabled = NO;
|
self.sendButton.enabled = NO;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
- (BOOL)textFieldShouldReturn:(UITextField *)textField{
|
||||||
|
[self.editTextFiled resignFirstResponder];
|
||||||
|
return YES;
|
||||||
|
}
|
||||||
#pragma mark - Public Method
|
#pragma mark - Public Method
|
||||||
+ (instancetype)showTextView:(UIView *)view delegate:(id<RoomHostDelegate>)delegate atUid:(NSString *)uid atNick:(NSString *)nick {
|
+ (instancetype)showTextView:(UIView *)view delegate:(id<RoomHostDelegate>)delegate atUid:(NSString *)uid atNick:(NSString *)nick {
|
||||||
__block XPRoomSendTextView * textView;
|
__block XPRoomSendTextView * textView;
|
||||||
@@ -263,8 +266,10 @@
|
|||||||
NSAttributedString * attribute = [[NSAttributedString alloc] initWithString:@"请输入消息..." attributes:@{NSFontAttributeName : [UIFont systemFontOfSize:15], NSForegroundColorAttributeName : [ThemeColor secondTextColor]}];
|
NSAttributedString * attribute = [[NSAttributedString alloc] initWithString:@"请输入消息..." attributes:@{NSFontAttributeName : [UIFont systemFontOfSize:15], NSForegroundColorAttributeName : [ThemeColor secondTextColor]}];
|
||||||
_editTextFiled.attributedPlaceholder = attribute;
|
_editTextFiled.attributedPlaceholder = attribute;
|
||||||
_editTextFiled.borderStyle = UITextBorderStyleNone;
|
_editTextFiled.borderStyle = UITextBorderStyleNone;
|
||||||
|
_editTextFiled.returnKeyType = UIReturnKeyDone;
|
||||||
_editTextFiled.textColor = [ThemeColor alertTitleColor];
|
_editTextFiled.textColor = [ThemeColor alertTitleColor];
|
||||||
_editTextFiled.font = [UIFont systemFontOfSize:15];
|
_editTextFiled.font = [UIFont systemFontOfSize:15];
|
||||||
|
_editTextFiled.delegate = self;
|
||||||
[_editTextFiled setContentHuggingPriority:UILayoutPriorityDefaultLow forAxis:UILayoutConstraintAxisHorizontal];
|
[_editTextFiled setContentHuggingPriority:UILayoutPriorityDefaultLow forAxis:UILayoutConstraintAxisHorizontal];
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@@ -36,6 +36,7 @@ NS_ASSUME_NONNULL_BEGIN
|
|||||||
- (NSArray *)getRoomPKGroupTeamList;
|
- (NSArray *)getRoomPKGroupTeamList;
|
||||||
///房间内PK是否正在进行
|
///房间内PK是否正在进行
|
||||||
- (BOOL)isRoomPKPlaying;
|
- (BOOL)isRoomPKPlaying;
|
||||||
|
-(BOOL)getIsMiniEnter;
|
||||||
@end
|
@end
|
||||||
|
|
||||||
NS_ASSUME_NONNULL_END
|
NS_ASSUME_NONNULL_END
|
||||||
|
@@ -74,6 +74,16 @@
|
|||||||
if (self) {
|
if (self) {
|
||||||
_hostDelegate = delegate;
|
_hostDelegate = delegate;
|
||||||
_isMiniEnter = NO;
|
_isMiniEnter = NO;
|
||||||
|
[RtcManager instance].isMiniEnterk = self.hostDelegate.getIsMiniEnter;
|
||||||
|
RoomInfoModel *roomInfo = self.hostDelegate.getRoomInfo;
|
||||||
|
if (roomInfo.roomModeType != RoomModeType_Open_AcrossRoomPK_mode ){
|
||||||
|
if ([RtcManager instance].isAnckorPk == NO){
|
||||||
|
if ([RtcManager instance].isMiniEnterk == NO){
|
||||||
|
[RtcManager instance].localMuted = YES;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
NSInteger microCount = self.countOfMircoView;
|
NSInteger microCount = self.countOfMircoView;
|
||||||
for (int i = 0; i < microCount; i++) {
|
for (int i = 0; i < microCount; i++) {
|
||||||
UIView* microView = [self microViewForIndex:i];
|
UIView* microView = [self microViewForIndex:i];
|
||||||
@@ -590,8 +600,19 @@
|
|||||||
sequence.userInfo = nil;
|
sequence.userInfo = nil;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
RoomInfoModel *roomInfo = self.hostDelegate.getRoomInfo;
|
||||||
|
if (changeType == 2){
|
||||||
|
if (userInfo.uid == [AccountInfoStorage instance].getUid.integerValue && roomInfo.roomModeType == RoomModeType_Open_Blind){
|
||||||
|
if (roomInfo.roomModeType != RoomModeType_Open_AcrossRoomPK_mode){
|
||||||
|
if ([RtcManager instance].isAnckorPk == NO){
|
||||||
|
[RtcManager instance].localMuted = YES;
|
||||||
|
|
||||||
if (changeType == 1) { // 上麦
|
}
|
||||||
|
|
||||||
|
[RtcManager instance].isAnckorPk = NO;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}else if (changeType == 1) { // 上麦
|
||||||
MicroQueueModel *sequence = [self.micQueue objectForKey:position];
|
MicroQueueModel *sequence = [self.micQueue objectForKey:position];
|
||||||
sequence.userInfo = userInfo;
|
sequence.userInfo = userInfo;
|
||||||
if (self.hostDelegate.getRoomInfo.showGiftValue && userInfo.uid == [AccountInfoStorage instance].getUid.integerValue) {
|
if (self.hostDelegate.getRoomInfo.showGiftValue && userInfo.uid == [AccountInfoStorage instance].getUid.integerValue) {
|
||||||
@@ -617,8 +638,20 @@
|
|||||||
}
|
}
|
||||||
//如果是当前用户上麦,关闭自己的麦克风
|
//如果是当前用户上麦,关闭自己的麦克风
|
||||||
if (sequence && sequence.userInfo.uid == [AccountInfoStorage instance].getUid.integerValue && userInfo.isNoProhibitMic == NO) {
|
if (sequence && sequence.userInfo.uid == [AccountInfoStorage instance].getUid.integerValue && userInfo.isNoProhibitMic == NO) {
|
||||||
|
if (roomInfo.roomModeType != RoomModeType_Open_Blind){
|
||||||
|
if (userInfo.isNoProhibitMic == NO){
|
||||||
|
if (roomInfo.roomModeType != RoomModeType_Open_AcrossRoomPK_mode){
|
||||||
|
if ([RtcManager instance].isMiniEnterk == NO){
|
||||||
[RtcManager instance].localMuted = YES;
|
[RtcManager instance].localMuted = YES;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(0.5 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
|
||||||
|
[RtcManager instance].isMiniEnterk = NO;
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if(userInfo.isNoProhibitMic == YES){
|
if(userInfo.isNoProhibitMic == YES){
|
||||||
for (int i = 0; i < self.countOfMircoView; i++) {
|
for (int i = 0; i < self.countOfMircoView; i++) {
|
||||||
|
@@ -1652,7 +1652,9 @@ NSString * const kHadQuitOtherRoomKey = @"kHadQuitOtherRoomKey";//是否退出
|
|||||||
self.anchorScrollView.contentOffset = CGPointMake(0, KScreenHeight);
|
self.anchorScrollView.contentOffset = CGPointMake(0, KScreenHeight);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
-(BOOL)getIsMiniEnter{
|
||||||
|
return self.isMiniEnter;
|
||||||
|
}
|
||||||
#pragma mark - XPRoomSettingInputViewDelegate
|
#pragma mark - XPRoomSettingInputViewDelegate
|
||||||
///点击了完成
|
///点击了完成
|
||||||
- (void)xPRoomSettingInputView:(XPRoomSettingInputView *)view didClickConfirm:(NSString *)text type:(RoomSettingInputType)type {
|
- (void)xPRoomSettingInputView:(XPRoomSettingInputView *)view didClickConfirm:(NSString *)text type:(RoomSettingInputType)type {
|
||||||
|
Reference in New Issue
Block a user