Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
DrWater
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
路少雄
DrWater
Commits
e41afef7
Commit
e41afef7
authored
Mar 20, 2024
by
李威
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
视频监听修改
parent
cf5de308
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
11 deletions
+14
-11
DJMHomeTY/Page/DRFacial/View/DXHFXView.m
+14
-11
No files found.
DJMHomeTY/Page/DRFacial/View/DXHFXView.m
View file @
e41afef7
...
@@ -15,7 +15,7 @@
...
@@ -15,7 +15,7 @@
static
NSString
*
dXHFXVideoCell
=
@"DXHFXVideoCell"
;
static
NSString
*
dXHFXVideoCell
=
@"DXHFXVideoCell"
;
@interface
DXHFXView
()
<
UICollectionViewDelegate
,
UICollectionViewDataSource
,
UICollectionViewDelegateFlowLayout
,
UIGestureRecognizerDelegate
,
DXProgressBarViewDelegate
>
@interface
DXHFXView
()
<
UICollectionViewDelegate
,
UICollectionViewDataSource
,
UICollectionViewDelegateFlowLayout
,
UIGestureRecognizerDelegate
,
DXProgressBarViewDelegate
>
...
@@ -53,6 +53,9 @@ static NSString *dXHFXVideoCell = @"DXHFXVideoCell";
...
@@ -53,6 +53,9 @@ static NSString *dXHFXVideoCell = @"DXHFXVideoCell";
@property
(
nonatomic
,
strong
)
DXProgressBarView
*
progressBarView
;
@property
(
nonatomic
,
strong
)
DXProgressBarView
*
progressBarView
;
@property
(
nonatomic
,
strong
)
NSMutableArray
*
timeArray
;
@end
@end
...
@@ -275,7 +278,15 @@ static NSString *dXHFXVideoCell = @"DXHFXVideoCell";
...
@@ -275,7 +278,15 @@ static NSString *dXHFXVideoCell = @"DXHFXVideoCell";
self
.
playerView
.
playerDidToEnd
=
^
(
id
_Nonnull
asset
)
{
self
.
playerView
.
playerDidToEnd
=
^
(
id
_Nonnull
asset
)
{
weakSelf
.
playerView
.
assetURL
=
proxyURL
;
weakSelf
.
playerView
.
assetURL
=
proxyURL
;
};
};
self
.
playerView
.
playerPlayTimeChanged
=
^
(
id
<
ZFPlayerMediaPlayback
>
_Nonnull
asset
,
NSTimeInterval
currentTime
,
NSTimeInterval
duration
)
{
if
(
!
weakSelf
.
progressBarView
.
timeArray
)
{
[
weakSelf
.
progressBarView
progressBarTimeArray
:
weakSelf
.
timeArray
Totaltime
:
duration
];
NSLog
(
@"当前播放时间=%f"
,
currentTime
);
}
weakSelf
.
progressBarView
.
playTime
=
currentTime
;
};
_volumeBtn
=
[
UIButton
buttonWithType
:
UIButtonTypeCustom
];
_volumeBtn
=
[
UIButton
buttonWithType
:
UIButtonTypeCustom
];
[
_volumeBtn
setImage
:[
UIImage
imageNamed
:
@"HFX_novolume"
]
forState
:
UIControlStateNormal
];
[
_volumeBtn
setImage
:[
UIImage
imageNamed
:
@"HFX_novolume"
]
forState
:
UIControlStateNormal
];
...
@@ -619,15 +630,7 @@ static NSString *dXHFXVideoCell = @"DXHFXVideoCell";
...
@@ -619,15 +630,7 @@ static NSString *dXHFXVideoCell = @"DXHFXVideoCell";
[
titleTimeArray1
addObject
:
titleTime
];
[
titleTimeArray1
addObject
:
titleTime
];
}
}
self
.
progressBarView
.
timeArray
=
nil
;
self
.
progressBarView
.
timeArray
=
nil
;
HJSelfWeak
;
self
.
timeArray
=
timeArray
;
self
.
playerView
.
playerPlayTimeChanged
=
^
(
id
<
ZFPlayerMediaPlayback
>
_Nonnull
asset
,
NSTimeInterval
currentTime
,
NSTimeInterval
duration
)
{
if
(
!
weakSelf
.
progressBarView
.
timeArray
)
{
[
weakSelf
.
progressBarView
progressBarTimeArray
:
timeArray
Totaltime
:
duration
];
NSLog
(
@"当前播放时间=%f"
,
currentTime
);
}
weakSelf
.
progressBarView
.
playTime
=
currentTime
;
};
return
timeArray
;
return
timeArray
;
//
//
...
...
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