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
48539ae9
authored
Feb 07, 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
c28584b6
f6352692
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
50 additions
and
18 deletions
DevelopmentPods/FUSFoundation/FUSFoundation/Classes/FUSFoundation/Views/StreamView/FUSByteStreamCaptureHelper.m
DevelopmentPods/FUSFoundation/FUSFoundation/Classes/FUSFoundation/Views/StreamView/FUSStreamCaptureHelper.h
DevelopmentPods/FUSFoundation/FUSFoundation/Classes/FUSFoundation/Views/StreamView/FUSStreamCaptureHelper.m
Modules/FUSShowRoomModule/FUSShowRoomModule/Features/NewLive/Main/View/FunctionView/LinkMicro/Other/FUSAgoraHelper.m
Modules/FUSShowRoomModule/FUSShowRoomModule/Features/NewLive/Main/View/FunctionView/LinkMicro/View/FUSLinkMicroUserListView.m
DevelopmentPods/FUSFoundation/FUSFoundation/Classes/FUSFoundation/Views/StreamView/FUSByteStreamCaptureHelper.m
View file @
48539ae9
...
...
@@ -485,6 +485,15 @@
[
self
.
engine
.
camera
resumeCameraCapture
];
}
-
(
void
)
fus_pauseAudioCapture
{
[
self
.
engine
stopAudioCapture
];
}
-
(
void
)
fus_resumeAudioCapture
{
[
self
.
engine
startAudioCapture
];
}
/**
获取实时统计信息
...
...
DevelopmentPods/FUSFoundation/FUSFoundation/Classes/FUSFoundation/Views/StreamView/FUSStreamCaptureHelper.h
View file @
48539ae9
...
...
@@ -141,6 +141,10 @@ typedef NS_ENUM(NSUInteger, FUSLiveCoreNetworkQuality) {
-
(
void
)
fus_resumeCapture
;
-
(
void
)
fus_pauseAudioCapture
;
-
(
void
)
fus_resumeAudioCapture
;
/// 重置推流的帧率
-
(
void
)
fus_setFPS
:(
NSInteger
)
fps
;
...
...
DevelopmentPods/FUSFoundation/FUSFoundation/Classes/FUSFoundation/Views/StreamView/FUSStreamCaptureHelper.m
View file @
48539ae9
...
...
@@ -117,6 +117,14 @@
}
-
(
void
)
fus_pauseAudioCapture
{
}
-
(
void
)
fus_resumeAudioCapture
{
}
/**
获取实时统计信息
...
...
Modules/FUSShowRoomModule/FUSShowRoomModule/Features/NewLive/Main/View/FunctionView/LinkMicro/Other/FUSAgoraHelper.m
View file @
48539ae9
...
...
@@ -577,13 +577,15 @@ NSString * const kLiveLinkMicRoleDidChanged = @"linkMicRoleChange";
-
(
void
)
delayUpdateToSpeakerPlay
{
dispatch_async
(
dispatch_get_global_queue
(
0
,
0
),
^
{
AVAudioSessionCategoryOptions
currentCategoryOptions
=
[
AVAudioSession
sharedInstance
].
categoryOptions
;
[
self
.
agoraEngine
setEnableSpeakerphone
:
YES
];
currentCategoryOptions
=
[
AVAudioSession
sharedInstance
].
categoryOptions
;
AVAudioSessionCategory
currentCategory
=
[
AVAudioSession
sharedInstance
].
category
;
AVAudioSessionCategoryOptions
categoryOptions
=
AVAudioSessionCategoryOptionMixWithOthers
|
AVAudioSessionCategoryOptionAllowBluetooth
|
AVAudioSessionCategoryOptionDefaultToSpeaker
|
AVAudioSessionCategoryOptionAllowBluetoothA2DP
;
[
self
->
_agoraEngine
setEnableSpeakerphone
:
YES
];
AVAudioSessionCategoryOptions
categoryOptions
=
43
;
NSError
*
error
;
if
(
currentCategoryOptions
<
categoryOptions
)
{
[[
AVAudioSession
sharedInstance
]
setCategory
:
AVAudioSessionCategoryPlayAndRecord
withOptions
:
categoryOptions
error
:&
error
];
}
AVAudioSessionRouteDescription
*
currentRoute
=
[
AVAudioSession
sharedInstance
].
currentRoute
;
BOOL
needForceToSpeaker
=
NO
;
for
(
AVAudioSessionPortDescription
*
port
in
currentRoute
.
outputs
)
{
...
...
@@ -598,9 +600,9 @@ NSString * const kLiveLinkMicRoleDidChanged = @"linkMicRoleChange";
}
[[
AVAudioSession
sharedInstance
]
setActive
:
YES
error
:
nil
];
currentCategoryOptions
=
[
AVAudioSession
sharedInstance
].
categoryOptions
;
});
}
#pragma mark - AgoraVideoFrameDelegate
-
(
BOOL
)
onRenderVideoFrame
:
(
AgoraOutputVideoFrame
*
)
videoFrame
uid
:
(
NSUInteger
)
uid
channelId
:
(
NSString
*
)
channelId
{
if
(
uid
==
FUSLiveHelper
.
shareInstance
.
roomInfoModel
.
roomId
.
integerValue
&&
...
...
Modules/FUSShowRoomModule/FUSShowRoomModule/Features/NewLive/Main/View/FunctionView/LinkMicro/View/FUSLinkMicroUserListView.m
View file @
48539ae9
...
...
@@ -910,7 +910,9 @@
return
;
}
[
FUSLinkMicroHttpHelper
fus_replyLinkedMicroWithChannelId
:
self
.
channelId
roomId
:
self
.
roomId
status
:
buttonIndex
success
:
nil
failure
:^
(
NSString
*
_Nonnull
msg
,
int
code
)
{
[
FUSLinkMicroHttpHelper
fus_replyLinkedMicroWithChannelId
:
self
.
channelId
roomId
:
self
.
roomId
status
:
buttonIndex
success
:^
{
[
self
fus_anchorAllowLinkMicOrYouAcceptLinkMic
];
}
failure
:^
(
NSString
*
_Nonnull
msg
,
int
code
)
{
[
FUSDialogView
fus_showDialog
:
msg
];
}];
}];
...
...
@@ -1049,7 +1051,7 @@
[
FUSDialogView
fus_showDialog
:[
NSString
fus_localString
:
@"连麦成功"
]];
[
self
.
linkMicAgoraHelper
fus_openMicro
];
}
[
self
fus_anchorAllowLinkMicOrYouAcceptLinkMic
];
}
else
{
[
FUSDialogView
fus_showDialog
:[
NSString
fus_localString
:
@"主播拒绝了上麦申请,请稍后再试"
]];
[
self
.
linkMicAgoraHelper
fus_closeMicro
];
...
...
@@ -1176,6 +1178,24 @@
}
failure
:
nil
];
}
}
else
{
// 后台说:没有移除中的状态,主播点了移除不管对方是否有真正退出频道成功,都算已经移除
// [FUSLinkMicroHttpHelper fus_stopLinkedMicroWithChannelId:self.channelId roomId:self.roomId type:@"1" success:^{
// [FUSDialogView fus_showDialog:@"上报闭麦成功!"];
// } failure:^(NSString * _Nonnull msg, int code) {
// [FUSDialogView fus_showDialog:msg];
// }];
}
[
_models
removeObject
:
_emptyModel
];
[
self
fus_updateHeaderViewSizeWithModels
:
_models
remove
:
YES
];
}
/// 主播同意了你的连麦申请
/// 或者
/// 你接受了主播的连麦申请
-
(
void
)
fus_anchorAllowLinkMicOrYouAcceptLinkMic
{
__weak
typeof
(
self
)
weakSelf
=
self
;
[
FUSLinkMicroHttpHelper
fus_startReportLinkedMicroWithChannelId
:
self
.
channelId
roomId
:
self
.
roomId
status
:
@"1"
success
:^
{
if
(
FUSConfig
.
sharedInstanced
.
devConfigs
.
enableTestCode
)
{
dispatch_after
(
dispatch_time
(
DISPATCH_TIME_NOW
,
(
int64_t
)(
2
*
NSEC_PER_SEC
)),
dispatch_get_main_queue
(),
^
{
...
...
@@ -1194,17 +1214,6 @@
}
failure
:^
(
NSString
*
_Nonnull
msg
,
int
code
)
{
[
FUSDialogView
fus_showDialog
:
msg
];
}];
}
else
{
// 后台说:没有移除中的状态,主播点了移除不管对方是否有真正退出频道成功,都算已经移除
// [FUSLinkMicroHttpHelper fus_stopLinkedMicroWithChannelId:self.channelId roomId:self.roomId type:@"1" success:^{
// [FUSDialogView fus_showDialog:@"上报闭麦成功!"];
// } failure:^(NSString * _Nonnull msg, int code) {
// [FUSDialogView fus_showDialog:msg];
// }];
}
[
_models
removeObject
:
_emptyModel
];
[
self
fus_updateHeaderViewSizeWithModels
:
_models
remove
:
YES
];
}
/// 麦位变化
...
...
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