Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
U
uniapp_vedio
Project
Project
Details
Activity
Releases
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
android
uniapp_vedio
Commits
cccbfc8b
Commit
cccbfc8b
authored
Nov 20, 2024
by
jyx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码优化
parent
10ee5310
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
8 deletions
+6
-8
player.vue
vedio/components/player/player.vue
+6
-8
No files found.
vedio/components/player/player.vue
View file @
cccbfc8b
...
...
@@ -99,11 +99,11 @@
console
.
log
(
"触发播放进度变化onTimeUpdate回调:"
,
e
);
// 播放到第10秒且今天没有弹出 ,弹出加入桌面
//
if ((e.currentTime > 10) && this.canShowShortcut) {
//
this.showShortcutPop = true
//
this.canShowShortcut = false
//
this.setShowShortcut()
//
}
if
((
e
.
currentTime
>
10
)
&&
this
.
canShowShortcut
)
{
this
.
showShortcutPop
=
true
this
.
canShowShortcut
=
false
this
.
setShowShortcut
()
}
});
pm
.
onWaiting
((
e
)
=>
{
console
.
log
(
"触发视频出现缓冲onWaiting回调:"
,
e
);
...
...
@@ -188,7 +188,7 @@
},
mounted
()
{
this
.
preloadAd
()
//
this.getShowShortcut()
this
.
getShowShortcut
()
console
.
log
(
"playerMounted"
);
},
beforeUpdate
()
{
...
...
@@ -263,8 +263,6 @@
this
.
ad
.
onClose
((
data
)
=>
{
uni
.
hideLoading
();
if
(
data
.
isEnded
)
{
console
.
log
(
"FFFFFFFFF"
)
if
(
that
.
showRewardAdMorePop
)
{
that
.
showRewardAdMorePop
=
false
that
.
pm
.
setCurrentUnlock
()
...
...
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