Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
pidan
/
FuSiLive
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
999b4358
authored
Apr 16, 2025
by
ludi
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature/邀请有奖' of
http://git.yabolive.net:88/pidan/FuSiLive
into feature/邀请有奖
parents
d83bd365
8b841d89
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
1 deletions
Modules/FUSShowRoomModule/FUSShowRoomModule/Features/NewLive/Main/View/FunctionView/LinkMicro/Other/FUSAgoraHelper.m
Modules/FUSShowRoomModule/FUSShowRoomModule/Features/NewLive/Main/View/FunctionView/LinkMicro/Other/FUSAgoraHelper.m
View file @
999b4358
...
...
@@ -293,6 +293,13 @@ NSString * const kLiveLinkMicRoleDidChanged = @"linkMicRoleChange";
success
();
}
weakSelf
.
isJoining
=
NO
;
if
(
FUSLiveHelper
.
shareInstance
.
roomInfoModel
.
channelId
.
integerValue
!=
channelId
.
integerValue
)
{
FUSLogDebug
(
@"pp===channelId 改变,加入了就退出频道 %@"
,
channelId
);
[
weakSelf
fus_stopRTCStreamingWithCompletion
:
^
{
}];
}
}];
if
(
code
<
0
)
{
...
...
@@ -319,6 +326,7 @@ NSString * const kLiveLinkMicRoleDidChanged = @"linkMicRoleChange";
[
FUSDialogView
fus_showDialog
:
@"连麦:加入频道发生错误,进行重新设置"
];
}
}
self
.
isJoining
=
NO
;
}
-
(
void
)
fus_stopLinkMicroStreamingWithChannelId
:
(
NSInteger
)
channelId
completionHandler
:
(
void
(
^
)(
void
))
completion
{
...
...
@@ -338,7 +346,7 @@ NSString * const kLiveLinkMicRoleDidChanged = @"linkMicRoleChange";
-
(
void
)
fus_stopRTCStreamingWithCompletion
:
(
void
(
^
)(
void
))
completion
{
if
(
!
_agoraEngine
||
!
_myselfIsOnMic
)
{
self
.
isJoining
=
NO
;
return
;
}
// _myselfIsOnMic = NO;
...
...
@@ -378,6 +386,16 @@ NSString * const kLiveLinkMicRoleDidChanged = @"linkMicRoleChange";
[
weakSelf
.
agoraOtherPreview
removeFromSuperview
];
FUSLiveHelper
.
shareInstance
.
streamView
.
playView
.
agoraOtherPreview
=
nil
;
__strong
typeof
(
weakSelf
)
strongSelf
=
weakSelf
;
// 销毁引擎
strongSelf
->
_agoraEngine
=
nil
;
[
AgoraRtcEngineKit
destroy
];
strongSelf
.
myselfIsOnMic
=
NO
;
[
strongSelf
.
agoraOtherPreview
removeFromSuperview
];
strongSelf
->
_role
=
AgoraClientRoleAudience
;
if
(
completion
)
{
completion
();
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment