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
2ade0e60
authored
Jan 07, 2025
by
pierce
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed bugs
parent
897e0d67
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
83 additions
and
12 deletions
DevelopmentPods/FUSCommon/FUSCommon/FUSRouter/Bundle/FUSRouterBundle.m
DevelopmentPods/FUSFoundation/FUSFoundation/Classes/FUSFoundation/Views/StreamView/FUSTTVideoPlayer/FUSTTStreamPlayer.m
Modules/FUSShowRoomModule/FUSShowRoomModule/Features/NewLive/Main/Controller/FUSLiveMainViewController.m
Modules/FUSShowRoomModule/FUSShowRoomModule/Features/NewLive/Main/Other/FUSLiveHttpHelper.m
Modules/FUSShowRoomModule/FUSShowRoomModule/Features/NewLive/Main/View/FunctionView/FUSLiveFunctionView.m
Modules/FUSShowRoomModule/FUSShowRoomModule/Features/NewLive/Main/View/FunctionView/LinkMicro/View/FUSLinkMicroHeaderView.m
Modules/FUSUserCenterModule/FUSUserCenterModule/Features/FUSImagePicker/Controller/FUSPhotoViewController.m
DevelopmentPods/FUSCommon/FUSCommon/FUSRouter/Bundle/FUSRouterBundle.m
View file @
2ade0e60
...
...
@@ -96,6 +96,7 @@
if
(
image
==
nil
)
{
image
=
[
UIImage
imageNamed
:
imageName
inBundle
:[
NSBundle
mainBundle
]
compatibleWithTraitCollection
:
nil
];
}
FUSLogInfo
(
@"pidan record imageNamed = %@, bundle = %@"
,
imageName
,
bundle
);
return
image
;
}
...
...
@@ -115,6 +116,7 @@
if
(
image
==
nil
)
{
image
=
[
self
imageNamed
:
imageName
inBundle
:[
NSBundle
mainBundle
]];
}
FUSLogInfo
(
@"pidan record imageWithContentFile = %@, bundle = %@"
,
imageName
,
bundle
);
return
image
;
}
...
...
DevelopmentPods/FUSFoundation/FUSFoundation/Classes/FUSFoundation/Views/StreamView/FUSTTVideoPlayer/FUSTTStreamPlayer.m
View file @
2ade0e60
...
...
@@ -150,11 +150,11 @@
}
-
(
void
)
fus_stopPlayer
{
[
self
fus_destroyPlayerAsync
:
YES
];
[
self
fus_destroyPlayerAsync
:
NO
];
}
-
(
void
)
fus_destroyPlayer
{
[
self
fus_destroyPlayerAsync
:
YES
];
[
self
fus_destroyPlayerAsync
:
NO
];
}
-
(
void
)
fus_destroyPlayerAsync
:
(
BOOL
)
async
{
...
...
@@ -440,9 +440,11 @@
#pragma mark - VeLivePlayerObserver
-
(
void
)
onRenderVideoFrame
:
(
TVLManager
*
)
player
videoFrame
:
(
VeLivePlayerVideoFrame
*
)
videoFrame
{
if
(
player
.
playbackState
==
TVLPlayerPlaybackStatePlaying
)
{
if
(
self
.
delegate
&&
[
self
.
delegate
respondsToSelector
:
@selector
(
fus_player
:
onRenderVideoFrame
:
)])
{
[
self
.
delegate
fus_player
:
self
onRenderVideoFrame
:
videoFrame
.
pixelBuffer
];
}
}
}
-
(
void
)
onAudioRenderStall
:
(
TVLManager
*
)
player
stallTime
:
(
int64_t
)
stallTime
{
...
...
Modules/FUSShowRoomModule/FUSShowRoomModule/Features/NewLive/Main/Controller/FUSLiveMainViewController.m
View file @
2ade0e60
...
...
@@ -786,7 +786,7 @@ typedef NS_ENUM(NSInteger, FUSStreamState) {
// 播放
[
FUSLiveHelper
fus_quitLiveWithCompletion
:
^
{
// [self.playView fus_stopPlay];
[
_
playView
fus_stopWithUID
:[
FUSLiveHelper
shareInstance
].
roomInfoModel
.
roomId
];
[
self
.
playView
fus_stopWithUID
:[
FUSLiveHelper
shareInstance
].
roomInfoModel
.
roomId
];
self
.
playView
=
nil
;
[
self
.
liveFunctionView
fus_cleanFunctionView
];
self
.
liveFunctionView
=
nil
;
...
...
@@ -801,8 +801,9 @@ typedef NS_ENUM(NSInteger, FUSStreamState) {
[
self
.
liveFunctionView
fus_cleanFunctionView
];
if
(
self
.
pushView
.
streamType
==
FUSStreamTypeRTC
)
{
__weak
typeof
(
self
)
weakSelf
=
self
;
[
self
.
pushView
fus_stopRTCStreamingWithCompletion
:
^
{
s
elf
.
pushView
=
nil
;
weakS
elf
.
pushView
=
nil
;
}];
}
else
{
self
.
pushView
=
nil
;
...
...
@@ -1363,7 +1364,7 @@ typedef NS_ENUM(NSInteger, FUSStreamState) {
NSString
*
liveType
=
@"0"
;
[
FUSLiveHttpHelper
fus_reconnectRoomWithRoomId
:[[[
FUSLiveHelper
shareInstance
]
roomInfoModel
]
roomId
]
livingType
:
liveType
vdoid
:
[[[
FUSLiveHelper
shareInstance
]
streamModel
]
vdoid
]
success
:^
(
FUSRoomInfoModel
*
roomInfoModel
)
{
_
retryTime
=
0
;
self
.
retryTime
=
0
;
self
.
resentJoinRoomTimer
=
[
NSTimer
scheduledTimerWithTimeInterval
:
2
target
:[
YYWeakProxy
proxyWithTarget
:
self
]
selector
:
@selector
(
resendJoinRoomTimerAction
:
)
userInfo
:
nil
repeats
:
YES
];
}
failure
:^
(
NSString
*
msg
,
int
code
,
NSDictionary
*
errorDict
)
{
...
...
@@ -2059,6 +2060,10 @@ typedef NS_ENUM(NSInteger, FUSStreamState) {
return
[
VELPictureInPictureController
isPictureInPictureSupported
];
}
-
(
void
)
delaySetupPictureInPicture
{
[
self
performSelector
:
@selector
(
setupPictureInPicture
)
afterDelay
:
0
.
3
];
}
-
(
void
)
setupPictureInPicture
{
if
(
self
.
autoStartPictureInPicture
==
NO
)
{
return
;
...
...
Modules/FUSShowRoomModule/FUSShowRoomModule/Features/NewLive/Main/Other/FUSLiveHttpHelper.m
View file @
2ade0e60
...
...
@@ -2115,7 +2115,9 @@
[
userMutArray
addObject
:
roomPKInfoModel
];
}
if
(
success
)
{
dispatch_async
(
dispatch_get_main_queue
(),
^
{
success
(
status
,
remaintime
,
winner
,
content
,
isLikePk
,
userMutArray
,
matchId
);
});
}
}
failure
:^
(
NSDictionary
*
dataDict
,
int
code
)
{
if
(
failure
)
{
...
...
Modules/FUSShowRoomModule/FUSShowRoomModule/Features/NewLive/Main/View/FunctionView/FUSLiveFunctionView.m
View file @
2ade0e60
...
...
@@ -2694,7 +2694,7 @@ UIGestureRecognizerDelegate
}
[[
NSOperationQueue
mainQueue
]
addOperationWithBlock
:
^
{
[
s
elf
.
userListViewModel
fus_reloadUserDataWithUID
:
fromUserUid
newLevel
:
fromUserLevel
inPay
:
fromUserInPay
];
[
weakS
elf
.
userListViewModel
fus_reloadUserDataWithUID
:
fromUserUid
newLevel
:
fromUserLevel
inPay
:
fromUserInPay
];
}];
// 校验礼物数据
...
...
@@ -2719,9 +2719,9 @@ UIGestureRecognizerDelegate
isMystic
=
NO
;
}
s
elf
.
bubbleNum
=
11
;
weakS
elf
.
bubbleNum
=
11
;
[[
NSOperationQueue
mainQueue
]
addOperationWithBlock
:
^
{
[
s
elf
.
emitter
fus_emitterLaunchCellForced
:
NO
];
[
weakS
elf
.
emitter
fus_emitterLaunchCellForced
:
NO
];
}];
FUSLiveGiftDataModel
*
giftModel
;
...
...
@@ -2801,7 +2801,7 @@ UIGestureRecognizerDelegate
}
dispatch_after
(
dispatch_time
(
DISPATCH_TIME_NOW
,
(
int64_t
)(
0
.
5
*
NSEC_PER_SEC
)),
dispatch_get_main_queue
(),
^
{
dispatch_async
(
dispatch_get_main_queue
(),
^
{
[
s
elf
.
pkContentView
fus_changeFirstKillAnimationViewLevel
];
[
weakS
elf
.
pkContentView
fus_changeFirstKillAnimationViewLevel
];
});
});
}];
...
...
@@ -4629,6 +4629,7 @@ UIGestureRecognizerDelegate
[[
FUSLiveGiftView
shareGiftView
]
fus_resetGiftView
];
if
([
FUSLiveHelper
shareInstance
].
liveType
==
FUSLiveTypeAudience
)
{
[
_enterRoomTimer
invalidate
];
_enterRoomTimer
=
[
NSTimer
timerWithTimeInterval
:
1
target
:
self
selector
:
@selector
(
countEnterRoomTimer
)
userInfo
:
nil
repeats
:
YES
];
[[
NSRunLoop
mainRunLoop
]
addTimer
:
_enterRoomTimer
forMode
:
NSDefaultRunLoopMode
];
_enterRoomInterval
=
1
;
...
...
Modules/FUSShowRoomModule/FUSShowRoomModule/Features/NewLive/Main/View/FunctionView/LinkMicro/View/FUSLinkMicroHeaderView.m
View file @
2ade0e60
...
...
@@ -31,6 +31,16 @@
// 送礼动画的图片
@property
(
nonatomic
,
strong
)
UIImageView
*
animImgView
;
@property
(
nonatomic
,
strong
)
UIImage
*
coverNormalImage
;
@property
(
nonatomic
,
strong
)
UIImage
*
coverHighlightedImage
;
@property
(
nonatomic
,
strong
)
UIImage
*
coverSelectedImage
;
@end
@implementation
FUSLinkMicroHeaderView
...
...
@@ -126,9 +136,22 @@
if
(
model
.
uid
.
integerValue
==
0
)
{
self
.
faceView
.
imageView
.
image
=
nil
;
[
self
.
coverBtn
setImage
:[
FUSShowRoomCenterBunble
imageNamed
:
model
.
face
]
forState
:
UIControlStateNormal
];
[
self
.
coverBtn
setImage
:[
FUSShowRoomCenterBunble
imageNamed
:
model
.
hightlightImgUrl
]
forState
:
UIControlStateHighlighted
];
[
self
.
coverBtn
setImage
:[
FUSShowRoomCenterBunble
animatedImageNamed
:
@"live_link_micro_request_"
duration
:
1
]
forState
:
UIControlStateSelected
];
if
(
self
.
coverNormalImage
==
nil
)
{
self
.
coverNormalImage
=
[
FUSShowRoomCenterBunble
imageNamed
:
model
.
face
];
}
if
(
self
.
coverHighlightedImage
==
nil
)
{
self
.
coverHighlightedImage
=
[
FUSShowRoomCenterBunble
imageNamed
:
model
.
hightlightImgUrl
];
}
if
(
self
.
coverSelectedImage
==
nil
)
{
self
.
coverSelectedImage
=
[
FUSShowRoomCenterBunble
animatedImageNamed
:
@"live_link_micro_request_"
duration
:
1
];
}
[
self
.
coverBtn
setImage
:
self
.
coverNormalImage
forState
:
UIControlStateNormal
];
[
self
.
coverBtn
setImage
:
self
.
coverHighlightedImage
forState
:
UIControlStateHighlighted
];
[
self
.
coverBtn
setImage
:
self
.
coverSelectedImage
forState
:
UIControlStateSelected
];
[
self
.
coverBtn
setImageEdgeInsets
:
UIEdgeInsetsMake
(
5
,
5
,
5
,
5
)];
_richImageView
.
image
=
nil
;
...
...
Modules/FUSUserCenterModule/FUSUserCenterModule/Features/FUSImagePicker/Controller/FUSPhotoViewController.m
View file @
2ade0e60
...
...
@@ -134,6 +134,26 @@
[
self
.
albumModel
.
result
enumerateObjectsWithOptions
:
option
usingBlock
:
^
(
id
_Nonnull
obj
,
NSUInteger
idx
,
BOOL
*
_Nonnull
stop
)
{
//enumerateObjectsUsingBlock:^(PHAsset *obj, NSUInteger idx, BOOL * _Nonnull stop) {
if
(
!
[
obj
isKindOfClass
:[
PHAsset
class
]])
return
;
if
(
!
[
obj
isKindOfClass
:[
PHAsset
class
]])
return
;
PHAsset
*
objAsset
=
(
PHAsset
*
)
obj
;
switch
([
FUSImagePickerManager
sharedManager
].
phAssetType
)
{
case
PHAssetMediaTypeImage
:
if
(
objAsset
.
mediaType
!=
PHAssetMediaTypeImage
)
{
return
;
}
break
;
case
PHAssetMediaTypeVideo
:
if
(
objAsset
.
mediaType
!=
PHAssetMediaTypeVideo
)
{
return
;
}
break
;
default
:
break
;
}
FUSAssetModel
*
model
=
[[
FUSAssetModel
alloc
]
init
];
model
.
asset
=
obj
;
model
.
isSelected
=
[[
FUSImagePickerManager
sharedManager
]
fus_isModelSelected
:
model
];
...
...
@@ -1034,6 +1054,22 @@
if
(
!
[
obj
isKindOfClass
:[
PHAsset
class
]])
return
;
PHAsset
*
objAsset
=
(
PHAsset
*
)
obj
;
switch
([
FUSImagePickerManager
sharedManager
].
phAssetType
)
{
case
PHAssetMediaTypeImage
:
if
(
objAsset
.
mediaType
!=
PHAssetMediaTypeImage
)
{
return
;
}
break
;
case
PHAssetMediaTypeVideo
:
if
(
objAsset
.
mediaType
!=
PHAssetMediaTypeVideo
)
{
return
;
}
break
;
default:
break
;
}
FUSAssetModel
*
model
=
[[
FUSAssetModel
alloc
]
init
];
model
.
asset
=
obj
;
model
.
isSelected
=
[[
FUSImagePickerManager
sharedManager
]
fus_isModelSelected
:
model
];
...
...
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