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
7bf1227f
authored
Jun 25, 2025
by
pidan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复看播内存泄漏导致发热的问题
parent
4b43dace
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
79 deletions
DevelopmentPods/FUSFoundation/FUSFoundation/Classes/FUSFoundation/Views/StreamView/FUSTTVideoPlayer/FUSTTStreamPlayer.m
DevelopmentPods/FUSFoundation/FUSFoundation/Classes/FUSFoundation/Views/StreamView/FUSTTVideoPlayer/FUSTTStreamPlayer.m
View file @
7bf1227f
...
...
@@ -246,6 +246,11 @@
liveManager
.
playerView
.
contentMode
=
UIViewContentModeScaleAspectFill
;
liveManager
.
playerView
.
frame
=
self
.
videoFrame
;
liveManager
.
delegate
=
self
;
if
(
@available
(
iOS
14
.
0
,
*
))
{
liveManager
.
supportPictureInPictureMode
=
YES
;
}
liveManager
.
playerViewRenderType
=
TVLPlayerViewRenderTypeMetal
;
[
liveManager
setRenderFillMode
:
VeLivePlayerFillModeAspectFill
];
[
self
.
view
addSubview
:
liveManager
.
playerView
];
// 设置playItem
...
...
@@ -442,88 +447,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
];
}
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
{
}
-
(
void
)
onError
:
(
TVLManager
*
)
player
error
:
(
VeLivePlayerError
*
)
error
{
}
-
(
void
)
onFirstAudioFrameRender
:
(
TVLManager
*
)
player
isFirstFrame
:
(
BOOL
)
isFirstFrame
{
}
-
(
void
)
onFirstVideoFrameRender
:
(
TVLManager
*
)
player
isFirstFrame
:
(
BOOL
)
isFirstFrame
{
}
-
(
void
)
onMainBackupSwitch
:
(
TVLManager
*
)
player
streamType
:
(
VeLivePlayerStreamType
)
streamType
error
:
(
VeLivePlayerError
*
)
error
{
}
-
(
void
)
onPlayerStatusUpdate
:
(
TVLManager
*
)
player
status
:
(
VeLivePlayerStatus
)
status
{
}
-
(
void
)
onReceiveSeiMessage
:
(
TVLManager
*
)
player
message
:
(
NSString
*
)
message
{
}
-
(
void
)
onRenderAudioFrame
:
(
TVLManager
*
)
player
audioFrame
:
(
VeLivePlayerAudioFrame
*
)
audioFrame
{
}
-
(
void
)
onResolutionSwitch
:
(
TVLManager
*
)
player
resolution
:
(
VeLivePlayerResolution
)
resolution
error
:
(
VeLivePlayerError
*
)
error
reason
:
(
VeLivePlayerResolutionSwitchReason
)
reason
{
}
-
(
void
)
onSnapshotComplete
:
(
TVLManager
*
)
player
image
:
(
UIImage
*
)
image
{
}
-
(
void
)
onStallEnd
:
(
TVLManager
*
)
player
{
}
-
(
void
)
onStallStart
:
(
TVLManager
*
)
player
{
}
-
(
void
)
onStatistics
:
(
TVLManager
*
)
player
statistics
:
(
VeLivePlayerStatistics
*
)
statistics
{
}
-
(
void
)
onVideoRenderStall
:
(
TVLManager
*
)
player
stallTime
:
(
int64_t
)
stallTime
{
}
-
(
void
)
onVideoSizeChanged
:
(
TVLManager
*
)
player
width
:
(
int
)
width
height
:
(
int
)
height
{
}
#pragma KVO
-
(
void
)
observeValueForKeyPath
:
(
NSString
*
)
keyPath
ofObject
:
(
id
)
object
change
:
(
NSDictionary
<
NSKeyValueChangeKey
,
id
>
*
)
change
context
:
(
void
*
)
context
{
...
...
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